From 01676a58a48211022884145a5a808b2a927f5700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 2 Dec 2012 17:29:13 +0000 Subject: [PATCH] only use one -letter as flag (3 characters) when use choice list; sys.argv[2:] issue svn: r20748 --- po/update_po.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/po/update_po.py b/po/update_po.py index 382010666..ae0503e66 100644 --- a/po/update_po.py +++ b/po/update_po.py @@ -371,11 +371,11 @@ def main(): # need at least one argument (sv.po, de.po, etc ...) # lang.po files maintenance - update.add_argument("-m", "--merge", dest="merge", + update.add_argument("-m", dest="merge", choices=LANG, help="merge lang.po files with last catalog") - update.add_argument("-k", "--check", dest="check", + update.add_argument("-k", dest="check", choices=LANG, help="check lang.po files") @@ -384,10 +384,10 @@ def main(): # need one argument (eg, de.po) - trans.add_argument("-u", "--untranslated", dest="untranslated", + trans.add_argument("-u", dest="untranslated", choices=[file for file in os.listdir('.') if file.endswith('.po')], help="list untranslated messages") - trans.add_argument("-f", "--fuzzy", dest="fuzzy", + trans.add_argument("-f", dest="fuzzy", choices=[file for file in os.listdir('.') if file.endswith('.po')], help="list fuzzy messages")