command line arguments (newbie...)

Fredrik Lundh fredrik at
Tue Nov 25 19:02:22 CET 2003

P at 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

    "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

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."


More information about the Python-list mailing list