Re: boolean command-line options

[email protected] (Eric Wilhelm)
Newsgroups perl.module.build
Message-ID <[email protected]>
# from Ken Williams
# on Wednesday 09 July 2008 13:41:

>> I think that it developed organically, though IIRC Andy Armstrong
>> was going to(/did?) improve it. For example, it used to be that none
>> of them were flags (and I didn't know that they had become such, I
>> still do `--verbose 1` and `--uninst 1`).
>
>We don't have to do '--verbose 1' anymore?

Nope.  There is a handful of things in _optional_arg() which don't 
require the '1' (but they do (ick?) DWIM) if the next thing in @argv 
starts with a digit.)

There is also a list of options in _translate_option() which are allowed 
to have dashes represent underscores.

--Eric
-- 
Turns out the optimal technique is to put it in reverse and gun it.
--Steven Squyres (on challenges in interplanetary robot navigation)
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.