diff options
author | mathieui <mathieui@mathieui.net> | 2012-08-06 15:07:38 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-08-06 15:07:38 +0200 |
commit | a14141bcec98eee77937716113ecd8a994c4836b (patch) | |
tree | 8f9106ede8213dfa2e7cff4a80f7f971e438b865 | |
parent | 100994df284e1ce004e8babaeece128b1bd92479 (diff) | |
download | poezio-a14141bcec98eee77937716113ecd8a994c4836b.tar.gz poezio-a14141bcec98eee77937716113ecd8a994c4836b.tar.bz2 poezio-a14141bcec98eee77937716113ecd8a994c4836b.tar.xz poezio-a14141bcec98eee77937716113ecd8a994c4836b.zip |
Make optparse work
-rw-r--r-- | src/args.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/args.py b/src/args.py index b0334fcc..4691a224 100644 --- a/src/args.py +++ b/src/args.py @@ -13,14 +13,14 @@ def parse_args(CONFIG_PATH=''): from argparse import ArgumentParser, SUPPRESS except ImportError: from optparse import OptionParser - from optparse import SUPPRESS_USAGE as SUPPRESS + from optparse import SUPPRESS_HELP as SUPPRESS parser = OptionParser() parser.add_option("-f", "--file", dest="filename", default=path.join(CONFIG_PATH, 'poezio.cfg'), - usage="The config file you want to use", metavar="CONFIG_FILE") + help="The config file you want to use", metavar="CONFIG_FILE") parser.add_option("-d", "--debug", dest="debug", - usage="The file where debug will be written", metavar="DEBUG_FILE") + help="The file where debug will be written", metavar="DEBUG_FILE") parser.add_option("-v", "--version", dest="version", - usage=SUPPRESS, metavar="VERSION", default="0.8-dev") + help=SUPPRESS, metavar="VERSION", default="0.8-dev") (options, args) = parser.parse_args() else: parser = ArgumentParser() |