From a14141bcec98eee77937716113ecd8a994c4836b Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 6 Aug 2012 15:07:38 +0200 Subject: [PATCH] Make optparse work --- src/args.py | 8 ++++---- 1 file 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()