diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-21 11:41:25 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-21 11:41:25 (GMT) |
commit | 6e49ac24060d8eadf60111f94050258a3407af0f (patch) | |
tree | 9a67531694a0055e566dbcf037b2b95f0f51ecdb /Doc/library/packaging.fancy_getopt.rst | |
parent | 87d8200978e519dabb9ef0d1d982c17b6bf9fba9 (diff) | |
download | cpython-6e49ac24060d8eadf60111f94050258a3407af0f.zip cpython-6e49ac24060d8eadf60111f94050258a3407af0f.tar.gz cpython-6e49ac24060d8eadf60111f94050258a3407af0f.tar.bz2 |
#14804: Remove [] around optional arguments with default values
3.3 specific additions to d13fdd97cc8e.
Diffstat (limited to 'Doc/library/packaging.fancy_getopt.rst')
-rw-r--r-- | Doc/library/packaging.fancy_getopt.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/packaging.fancy_getopt.rst b/Doc/library/packaging.fancy_getopt.rst index 2c69341..199cbcd 100644 --- a/Doc/library/packaging.fancy_getopt.rst +++ b/Doc/library/packaging.fancy_getopt.rst @@ -33,7 +33,7 @@ provides the following additional features: ``sys.argv[1:]`` if you pass ``None`` as *args*. -.. class:: FancyGetopt([option_table=None]) +.. class:: FancyGetopt(option_table=None) The option_table is a list of 3-tuples: ``(long_option, short_option, help_string)`` @@ -46,7 +46,7 @@ provides the following additional features: The :class:`FancyGetopt` class provides the following methods: -.. method:: FancyGetopt.getopt([args=None, object=None]) +.. method:: FancyGetopt.getopt(args=None, object=None) Parse command-line options in args. Store as attributes on *object*. @@ -67,7 +67,7 @@ The :class:`FancyGetopt` class provides the following methods: yet. -.. method:: FancyGetopt.generate_help([header=None]) +.. method:: FancyGetopt.generate_help(header=None) Generate help text (a list of strings, one per suggested line of output) from the option table for this :class:`FancyGetopt` object. |