Skip Menu |

This queue is for tickets about the Getopt-Euclid CPAN distribution.

Report information
The Basics
Id: 23406
Status: resolved
Priority: 0/
Queue: Getopt-Euclid

People
Owner: Nobody in particular
Requestors: zorglups [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Placeholder type error ... error
Date: Thu, 16 Nov 2006 22:00:51 +0000
To: <bug-getopt-euclid [...] rt.cpan.org>
From: Pierre Hilson <zorglups [...] hotmail.com>
Hi Damian,First of all, let me tell you that I red your book nd you are like a living god !!!The book is opened on my desk even before the laptop is opened and I pushed my colleagues to go for it. (actually, I don't want to borrow it).I tried Getopt::Euclid and will adopt it for sure. I just miss the mutually exclusive options and the options only available with other options but this would be the cherry on top of the cake...I tried the module and I cannot get the version 0.1.0 to give my own error message with the following POD:=item -d[ir] <download_dir>Specifies an alternate download directory. By default, all packages are downloaded into the current directory (the directory from where the bl_upgrade script was launched NOT the directory where bl_upgrade is).The packages are temporarilly extracted to /tmp during their installation.=for Euclid: download_dir.default: "." download_dir.type: string, -d download_dir && -w download_dir download_dir.type.error: download_dir is not writable or does not exist It must be something wrong with my code but I could'n figure out my bug.Best regards,Pierre.
Hi Pierre, Thank you for your bug report! Try a recent version of Getopt::Euclid. I tried the attached script with version 0.2.4 and custom error messages work as expected. I also implemented a way the 'exclude' attribute to specify which arguments cannot be specified simultaneously. Regards, Florent On Thu Nov 16 17:01:20 2006, zorglups@hotmail.com wrote: Show quoted text
> Hi Damian,First of all, let me tell you that I red your book nd you > are like a living god !!!The book is opened on my desk even before > the laptop is opened and I pushed my colleagues to go for it. > (actually, I don't want to borrow it).I tried Getopt::Euclid and > will adopt it for sure. I just miss the mutually exclusive options > and the options only available with other options but this would be > the cherry on top of the cake...I tried the module and I cannot get > the version 0.1.0 to give my own error message with the following > POD:=item -d[ir] <download_dir>Specifies an alternate download > directory. By default, all packages are downloaded into the current > directory (the directory from where the bl_upgrade script was > launched NOT the directory where bl_upgrade is).The packages are > temporarilly extracted to /tmp during their installation.=for > Euclid: download_dir.default: "." download_dir.type: string, > -d download_dir && -w download_dir download_dir.type.error: > download_dir is not writable or does not exist It must be something > wrong with my code but I could'n figure out my bug.Best > regards,Pierre.
Subject: script.pl
#! /usr/bin/env perl use warnings; use strict; use Getopt::Euclid; __END__ =head1 REQUIRED ARGUMENTS =over =item -d[ir] <download_dir> Specifies an alternate download directory. By default, all packages are downloaded into the current directory (the directory from where the bl_upgrade script was launched NOT the directory where bl_upgrade is). The packages are temporarilly extracted to /tmp during their installation. =for Euclid: download_dir.default: "." download_dir.type: string, -d download_dir && -w download_dir download_dir.type.error: download_dir is not XXX writable or does not exist =back