[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [GT] Input validation in Tools.pm
>From the manual of getopt: "Without additional configuration,
GetOptions() will ignore the case of option names, and allow the options
to be abbreviated to uniqueness."
> -----Original Message-----
> From: Robert A. Schmied [mailto:ras
AT
acm.org]
> Sent: Sunday, July 06, 2008 6:41 PM
> To: sam_backtester
AT
yahoo.fr
> Cc: devel
AT
geniustrader.org
> Subject: Re: [GT] Input validation in Tools.pm
>
> > And I suppose your example, with --ti and --sta is your private
> hacked version, in your personnal repo ?
>
> humm -- i believe that Getopt::Long (at least from v 2.33 onward) will
> accept option flag
> abbreviations that are unique in the set of option flag names. but
> there might be a config
> setting for Getopt::Long that i turned on, but now fail to remember or
> find any mention of.
>
> --ti is unique for --timeframe and --sta unique for --start as least
> with display_indicator flag names.
>
> you should be able to easily validate this by trying it. let me know
> (via list is fine)
> if your trunk install fails to accept these abbreviations and i'll
look
> harder for it.
>
>