Changeset 388 for python/vendor/current/Lib/optparse.py
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Lib/optparse.py
r2 r388 814 814 parser.exit() 815 815 else: 816 raise RuntimeError, "unknown action %r" % self.action816 raise ValueError("unknown action %r" % self.action) 817 817 818 818 return 1 … … 1132 1132 the name of the current program (to override 1133 1133 os.path.basename(sys.argv[0])). 1134 description : string 1135 A paragraph of text giving a brief overview of your program. 1136 optparse reformats this paragraph to fit the current terminal 1137 width and prints it when the user requests help (after usage, 1138 but before the list of options). 1134 1139 epilog : string 1135 1140 paragraph of help text to print after option help … … 1467 1472 1468 1473 Determine which long option string 'opt' matches, ie. which one 1469 it is an unambiguous abbrev ation for. Raises BadOptionError if1474 it is an unambiguous abbreviation for. Raises BadOptionError if 1470 1475 'opt' doesn't unambiguously match any long option string. 1471 1476 """
Note:
See TracChangeset
for help on using the changeset viewer.