Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: asuffield [...] suffields.me.uk
Cc:
AdminCc:

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



Subject: Aliased option names
Date: Sun, 25 Jun 2006 18:44:13 +0100
To: bug-getopt-euclid [...] rt.cpan.org
From: Andrew Suffield <asuffield [...] suffields.me.uk>
Getopt::Euclid is a nice idea, but for me there's one big thing missing: the ability to specify several aliased forms for the same option. Ideally I want to say something like this: =over =item -o <file>, --output [=] <file> Write the output to this file =for Euclid: file.type: writeable file.default: '-' =back =cut Then I could run the program as 'foo -o out' or 'foo --output=out' or whatever. This is particularly important when you want to convert from an existing argument parsing method, without changing the command-line syntax (so -o[utput] is no good). My current workaround is to have multiple =items for each one, but then I have to post-process %ARGV to handle duplicates somehow, it doesn't work for required arguments, and the --help and --man output is formatted in a less-than-ideal manner.
On Sun Jun 25 13:45:04 2006, asuffield@suffields.me.uk wrote: Show quoted text
> =item -o <file>, --output [=] <file>
Try: =item [-]-o[utput] [=] <file> Or: =item -o <file> | --output [=] <file> I'm resolving this ticket since 0.2.0 supports this. Show quoted text
> the --help and --man output is formatted in a less-than-ideal manner.
Can you elaborate?
Subject: Re: [rt.cpan.org #20096] Aliased option names
Date: Tue, 26 May 2009 20:17:19 +0100
To: Kevin Galinsky via RT <bug-Getopt-Euclid [...] rt.cpan.org>
From: Andrew Suffield <asuffield [...] suffields.me.uk>
On Tue, May 26, 2009 at 02:19:13PM -0400, Kevin Galinsky via RT wrote: Show quoted text
> > the --help and --man output is formatted in a less-than-ideal manner.
> > Can you elaborate?
Years ago much? But, I'm guessing that's in reference to what happens when you use multiple =item entries instead of the (then unimplemented) aliased form. I wouldn't worry about it.
Re-closing ticket.