Greg Ward
071ed76732
Standardize whitespace in function calls.
2000-09-26 02:12:31 +00:00
Greg Ward
68ded6e6f1
Added 'translate_longopt()' function.
2000-09-25 01:58:31 +00:00
Greg Ward
46a69b9c7f
Added docstring for 'wrap()' function.
2000-08-30 17:16:27 +00:00
Greg Ward
0fd2dd6db0
Fix so we clear or reinitialize various data structures before populating
...
(allows the same FancyGetopt object to be used multiple times with different
option tables).
2000-08-07 00:45:51 +00:00
Greg Ward
373dbfa723
Fixed so we print more than just the first line of help for options with
...
a short form and text that wraps onto multiple lines.
2000-06-08 00:35:33 +00:00
Greg Ward
981f7368f6
Don't take advantage of OptionDummy's new "auto-initialization" feature
...
after all -- turns out it doesn't buy us much after all...
2000-05-23 03:53:10 +00:00
Greg Ward
3c67b1dd08
OptionDummy now has a constructor that takes a list of options: each string
...
in the option list is an attribute of the OptionDummy that will be
initialized to None.
2000-05-23 01:44:20 +00:00
Greg Ward
66bf446273
Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.
2000-04-23 02:50:45 +00:00
Greg Ward
1e7b509526
Added the capability for alias options.
2000-04-21 04:22:01 +00:00
Greg Ward
320df700dc
Added 'has_option()', 'get_attr_name()' methods.
2000-04-21 02:31:07 +00:00
Greg Ward
283c745c57
Made 'generate_help()' and 'print_help()' methods of FancyGetopt.
...
Added 'set_option_table()' method.
Added missing 'self' to 'get_option_order()'.
Cosmetic/comment/docstring tweaks.
2000-04-21 02:09:26 +00:00
Greg Ward
ead5c291bb
Continuing the refactoring: deleted the old 'fancy_getopt()' function,
...
leaving in its place a tiny wrapper around the FancyGetopt class
for backwards compatibility.
2000-04-21 01:44:00 +00:00
Greg Ward
ffc10d9a2e
Hefty refactoring: converted 'fancy_getopt()' function into FancyGetopt
...
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.)
2000-04-21 01:41:54 +00:00
Greg Ward
3ce77fd05e
Changed '__rcsid__' to '__revision__'.
2000-03-02 01:49:45 +00:00
Greg Ward
44f8e4ea08
Added support for printing out help text from option table: 'print_help()',
...
'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.
1999-12-12 16:54:55 +00:00
Greg Ward
a564cc315b
Hacked to support the notion of "negative alias" options, to handle
...
-q/--quiet reasonably elegantly.
1999-10-03 20:48:53 +00:00
Greg Ward
0081cc529c
Better detection of bad entries in option table.
...
Better error messages for bad entries in option table.
1999-08-14 23:44:37 +00:00
Greg Ward
2689e3ddce
First checkin of real Distutils code.
1999-03-22 14:52:19 +00:00