Re: Command and option ordering (refactoring command options)

2007-09-02 Thread Adrian Holovaty
On 9/2/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Any objections to requiring the second form? I don't have any huge objections, and it makes sense that we'd require this, given that each command knows what its valid options are. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com -

Command and option ordering (refactoring command options)

2007-09-02 Thread Todd O'Bryan
Currently, both of the following work: $ django-admin.py --opt value command_name [1] $ django-admin.py command_name --opt value [2] because django-admin.py is the actual command and the command_name is just an arg. If we create a parser that only admits options that are valid for the given co