Order is significant because of the shell.  If you commonly use a
program with option --foo, then you often decide to make an alias for
the program that includes that option.  If order is significant, then
you can call the alias and add the --no-foo option to get a different
effect without have to go around your shell alias.  Some programs like
'less' even allow you to put options into an environment variable, then
let command line options override the variable.
  -Lee

> Date: Thu, 16 Jun 2005 14:35:52 -0700
> From: Eric Wilhelm <[EMAIL PROTECTED]>
> To: module-authors@perl.org
> Subject: Re: RFC:  Getopt::Modern
> User-Agent: KMail/1.7.1
> X-MIME-Autoconverted: from quoted-printable to 8bit by 
> defiant.dfw.nostrum.com id j5GLYjS20646
> 
> # The following was supposedly scribed by
> # A. Pagaltzis
> # on Thursday 16 June 2005 05:00 am:
> 
> >As for the ???'foo!' => \$foo??? thing I misunderstood your example
> >(I thought you were pointing out a bug or ommission) because I
> >*expect* the exact behaviour that you say is ???non-strict???.
> 
> This seems to be a common reaction?  Why?
> 
> You wouldn't say
> 
>   --foo --no-foo
> 
> if you just meant
> 
>   --no-foo
> 
> Would you?
> 
> 
> It also seems to be a programmerly reaction, which leads me to the 
> thought that maybe the name I want is Getopt::User because the primary 
> design goal is to present the user with predictable option processing.
> 
> Please see this essay
> http://scratchcomputing.com/svn/Getopt-Modern/trunk/data/notes/why_order_matters.txt
> 
> --Eric
> -- 
> Minimum wage help gives you minimum service. 
>                                             -- David Schomer
> ---------------------------------------------
>     http://scratchcomputing.com
> ---------------------------------------------
> 

-- 
    Lee Eakin - [EMAIL PROTECTED]
 
    With sufficient thrust, pigs fly just fine.  -- RFC 1925

Reply via email to