diff options
author | mathieui <mathieui@mathieui.net> | 2016-07-27 19:05:27 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-07-27 19:05:27 +0200 |
commit | f6960d09f0e84903954e801397209ef7eb1450ce (patch) | |
tree | ad008d7c44edebd96258a1e2b1c8087070cdf165 /doc/stub/args.py | |
parent | 15bef8d7521dae6d23e3fa251132395919010208 (diff) | |
download | poezio-f6960d09f0e84903954e801397209ef7eb1450ce.tar.gz poezio-f6960d09f0e84903954e801397209ef7eb1450ce.tar.bz2 poezio-f6960d09f0e84903954e801397209ef7eb1450ce.tar.xz poezio-f6960d09f0e84903954e801397209ef7eb1450ce.zip |
Fix doc building
Broken by the namespace change
Diffstat (limited to 'doc/stub/args.py')
-rw-r--r-- | doc/stub/args.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/doc/stub/args.py b/doc/stub/args.py deleted file mode 100644 index 4691a224..00000000 --- a/doc/stub/args.py +++ /dev/null @@ -1,34 +0,0 @@ -""" -Module related to the argument parsing - -There is a fallback to the deprecated optparse if argparse is not found -""" -from os import path - -def parse_args(CONFIG_PATH=''): - """ - Parse the arguments from the command line - """ - try: - from argparse import ArgumentParser, SUPPRESS - except ImportError: - from optparse import OptionParser - from optparse import SUPPRESS_HELP as SUPPRESS - parser = OptionParser() - parser.add_option("-f", "--file", dest="filename", default=path.join(CONFIG_PATH, 'poezio.cfg'), - help="The config file you want to use", metavar="CONFIG_FILE") - parser.add_option("-d", "--debug", dest="debug", - help="The file where debug will be written", metavar="DEBUG_FILE") - parser.add_option("-v", "--version", dest="version", - help=SUPPRESS, metavar="VERSION", default="0.8-dev") - (options, args) = parser.parse_args() - else: - parser = ArgumentParser() - parser.add_argument("-f", "--file", dest="filename", default=path.join(CONFIG_PATH, 'poezio.cfg'), - help="The config file you want to use", metavar="CONFIG_FILE") - parser.add_argument("-d", "--debug", dest="debug", - help="The file where debug will be written", metavar="DEBUG_FILE") - parser.add_argument("-v", "--version", dest="version", - help=SUPPRESS, metavar="VERSION", default="0.8-dev") - options = parser.parse_args() - return options |