summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/fancy_getopt.py
Commit message (Collapse)AuthorAgeFilesLines
* Use correct variable nameAndrew M. Kuchling2001-08-091-1/+1
|
* Standardize whitespace in function calls.Greg Ward2000-09-261-55/+54
|
* Added 'translate_longopt()' function.Greg Ward2000-09-251-0/+7
|
* Added docstring for 'wrap()' function.Greg Ward2000-08-301-0/+5
|
* Fix so we clear or reinitialize various data structures before populatingGreg Ward2000-08-071-0/+5
| | | | | (allows the same FancyGetopt object to be used multiple times with different option tables).
* Fixed so we print more than just the first line of help for options withGreg Ward2000-06-081-3/+3
| | | | a short form and text that wraps onto multiple lines.
* Don't take advantage of OptionDummy's new "auto-initialization" featureGreg Ward2000-05-231-1/+1
| | | | after all -- turns out it doesn't buy us much after all...
* OptionDummy now has a constructor that takes a list of options: each stringGreg Ward2000-05-231-2/+9
| | | | | in the option list is an attribute of the OptionDummy that will be initialized to None.
* Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.Greg Ward2000-04-231-2/+2
|
* Added the capability for alias options.Greg Ward2000-04-211-12/+36
|
* Added 'has_option()', 'get_attr_name()' methods.Greg Ward2000-04-211-1/+14
|
* Made 'generate_help()' and 'print_help()' methods of FancyGetopt.Greg Ward2000-04-211-99/+102
| | | | | | Added 'set_option_table()' method. Added missing 'self' to 'get_option_order()'. Cosmetic/comment/docstring tweaks.
* Continuing the refactoring: deleted the old 'fancy_getopt()' function,Greg Ward2000-04-211-121/+0
| | | | | leaving in its place a tiny wrapper around the FancyGetopt class for backwards compatibility.
* Hefty refactoring: converted 'fancy_getopt()' function into FancyGetoptGreg Ward2000-04-211-15/+266
| | | | | | | | class. (Mainly this was to support the ability to go back after the getopt operation is done and get extra information about the parse, in particular the original order of options seen on the command line. But it's a big improvement and should make it a lot easier to add functionality in the future.)
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-021-1/+1
|
* Added support for printing out help text from option table: 'print_help()',Greg Ward1999-12-121-12/+171
| | | | | | | | 'generate_help()', 'wrap_text()' functions, and a little tiny test of 'wrap_text()'. Changed how caller states that one option is the boolean opposite of another: added 'negative_opt' parameter to 'fancy_getopt()', and changed to use it instead of parsing long option name.
* Hacked to support the notion of "negative alias" options, to handleGreg Ward1999-10-031-3/+32
| | | | -q/--quiet reasonably elegantly.
* Better detection of bad entries in option table.Greg Ward1999-08-141-3/+11
| | | | Better error messages for bad entries in option table.
* First checkin of real Distutils code.Greg Ward1999-03-221-0/+115