Re: Stanford IDG internal Perl style
Niels Thykier <niels@thykier.net> writes:
> Do you have some examples of complex usage of Getopt::Long::Descriptive
> by the way? I had a stab at rewriting lintian's option parsing and for
> sometimes I cannot find the way to do it with G::L::Descriptive.
I don't... I don't think we've tried to do anything complicated. In
particular, it doesn't look like it supports Getopt::Long's ability to
insert subs into the option parsing or otherwise discover the order in
which the options were given.
>> Oh, that's kind of annoying. Although we conventionally ommitted the
>> Usage: for subsequent lines anyway and just said:
>>
>> Usage: lintian-info ...
>> lintian-info --annotate
>> lintian-info --tags ...
> That is the way I wanted to write it, but even "\n\t" is "two or more
> spaces" and gets translated to " " resulting in:
> Usage: lintian-info ... lintian-info --annotate [... and so on]
> i.e. one long unreadable line.
Oh, sorry, I misread. Yes, indeed, that's quite annoying!
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: