summaryrefslogtreecommitdiff
path: root/src/args.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-05-10 10:37:00 +0200
committermathieui <mathieui@mathieui.net>2015-05-11 22:31:12 +0200
commitdd98aa44a5084f0590645f5ee9565ab962e6c844 (patch)
tree8e16fbb20e969eadfea5ba2689e1de4539ffcf94 /src/args.py
parent861f5c4bbd775b091362766ecafeb7d1955aab2f (diff)
downloadpoezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.gz
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.bz2
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.xz
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.zip
Remove gettext support, as we don’t want to translate poezio, and it takes more than 1ms per call.
Diffstat (limited to 'src/args.py')
-rw-r--r--src/args.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/args.py b/src/args.py
index a67a0142..8b1ebbbd 100644
--- a/src/args.py
+++ b/src/args.py
@@ -3,7 +3,6 @@ Module related to the argument parsing
There is a fallback to the deprecated optparse if argparse is not found
"""
-from gettext import gettext as _
from os import path
from argparse import ArgumentParser, SUPPRESS
@@ -14,13 +13,13 @@ def parse_args(CONFIG_PATH=''):
parser = ArgumentParser('poezio')
parser.add_argument("-c", "--check-config", dest="check_config",
action='store_true',
- help=_('Check the config file'))
+ help='Check the config file')
parser.add_argument("-d", "--debug", dest="debug",
- help=_("The file where debug will be written"),
+ help="The file where debug will be written",
metavar="DEBUG_FILE")
parser.add_argument("-f", "--file", dest="filename",
default=path.join(CONFIG_PATH, 'poezio.cfg'),
- help=_("The config file you want to use"),
+ help="The config file you want to use",
metavar="CONFIG_FILE")
parser.add_argument("-v", "--version", dest="version",
help=SUPPRESS, metavar="VERSION",