summaryrefslogtreecommitdiff
path: root/Mac/Python/macglue.c
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>1999-12-12 16:51:44 +0000
committerGreg Ward <gward@python.net>1999-12-12 16:51:44 +0000
commitc9c37b1c6e6105fe00e4aa958b62f946a75800ac (patch)
treeccba4a1c3d726e4c939647aca0bc4069e0a20923 /Mac/Python/macglue.c
parentd6bc4e7fc001d7b64713c90bf5909d60c2adabe5 (diff)
downloadcpython-git-c9c37b1c6e6105fe00e4aa958b62f946a75800ac.tar.gz
Made "verbose" mode the default; now you have to supply --quiet if you
want no output. Still no option for a happy medium though. Added "--help" global option. Changed 'parse_command_line()' to recognize help options (both for the whole distribution and per-command), and to distinguish "regular run" and "user asked for help" by returning false in the latter case. Also in 'parse_command_line()', detect invalid command name on command line by catching DistutilsModuleError. a 'negative_opt' class attribute right after 'global_options'; changed how we call 'fancy_getopt()' accordingly. Initialize 'maintainer' and 'maintainer_email' attributes to Distribution to avoid AttributeError when 'author' and 'author_email' not defined. Initialize 'help' attribute in Command constructor (to avoid AttributeError when user *doesn't* ask for help). In 'setup()': * show usage message before dying when we catch DistutilsArgError * only run commands if 'parse_command_line()' returned true (that way, we exit immediately when a help option is found) * catch KeyboardInterrupt and IOError from running commands Bulked up usage message to show --help options. Comment, docstring, and error message tweaks.
Diffstat (limited to 'Mac/Python/macglue.c')
0 files changed, 0 insertions, 0 deletions