Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 61052
Status: open
Priority: 0/
Queue: Getopt-Lucid

People
Owner: Nobody in particular
Requestors: BATZ [...] cpan.org
Cc:
AdminCc:

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



Subject: Add easy help adding/accessing
I think it is cleaner to include a help string with the options, and provide a default function to print the help strings in a "standard" format. I've attached the modifications to the 0.18 version to add this. The functions added are: $opt->help([$desc]) returns a string represening the help strings the optional $desc gives a string for the non-flag arguments $opt->flag_help($flag) returns the help text associated with $flag Cheers, and thanks!
Subject: Lucid.pm

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #61052] Add easy help adding/accessing
Date: Sat, 4 Sep 2010 07:18:09 -0400
To: bug-Getopt-Lucid [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Sat, Sep 4, 2010 at 1:50 AM, Matt Spear via RT <bug-Getopt-Lucid@rt.cpan.org> wrote: Show quoted text
> I think it is cleaner to include a help string with the options, and > provide a default function to print the help strings in a "standard" > format.  I've attached the modifications to the 0.18 version to add > this.  The functions added are: > $opt->help([$desc]) >    returns a string represening the help strings >    the optional $desc gives a string for the non-flag arguments > $opt->flag_help($flag) >    returns the help text associated with $flag
I've been wanting to do that for a while. It's a holiday weekend here, so I won't get a chance to look at it until next week, but thank you very much for taking this on. David