command line arguments (newbie...)

Fredrik Lundh fredrik at pythonware.com
Tue Nov 25 13:02:22 EST 2003


P at draigBrady.com wrote:

> man 3 getopt suggests t:: should work.
> If it doesn't then it's another broken python reimplementation of a
> standard library:

if you're going to refer to standards, maybe you should read the
standard:

http://www.opengroup.org/onlinepubs/007908799/xsh/getopt.html

    "The argument optstring is a string of recognised option characters;
    if a character is followed by a colon, the option takes an argument.
    All option characters allowed by Utility Syntax Guideline 3 are allowed
    in optstring. The implementation may accept other characters as an
    extension."

where Utility Syntax Guideline 3 says:

    "Each option name should be a single alphanumeric character (the
    alnum character classification) from the portable character set. Multi-
    digit options are not allowed."

and Utility Syntax Guideline 7 says:

    "Option-arguments should not be optional."

</F>








More information about the Python-list mailing list