optional optional args vs optional positional options

J. Cliff Dyer jcd at sdf.lonestar.org
Wed Jun 2 09:06:20 EDT 2010


+1  

Options are options, arguments are arguments.  An optional argument is
not an option.  It is an argument that can be left out.



On Wed, 2010-06-02 at 12:42 +0200, Antoine Pitrou wrote:
> On Wed, 2 Jun 2010 01:49:18 -0700 (PDT)
> Michele Simionato <michele.simionato at gmail.com> wrote:
> > 
> > Notice that optparse is basically useless in the use case Tim is
> > considering (positional arguments) since it only manages options.
> 
> By the way, could you stop naming these "optional arguments", since
> positional arguments can be optional as well? It is confusing :)
> 
> Thanks
> 
> Antoine.
> 
> 





More information about the Python-list mailing list