only use one -letter as flag (3 characters) when use choice list; sys.argv[2:] issue
svn: r20748
This commit is contained in:
parent
6f6c3845f0
commit
01676a58a4
@ -371,11 +371,11 @@ def main():
|
|||||||
# need at least one argument (sv.po, de.po, etc ...)
|
# need at least one argument (sv.po, de.po, etc ...)
|
||||||
|
|
||||||
# lang.po files maintenance
|
# lang.po files maintenance
|
||||||
update.add_argument("-m", "--merge", dest="merge",
|
update.add_argument("-m", dest="merge",
|
||||||
choices=LANG,
|
choices=LANG,
|
||||||
help="merge lang.po files with last catalog")
|
help="merge lang.po files with last catalog")
|
||||||
|
|
||||||
update.add_argument("-k", "--check", dest="check",
|
update.add_argument("-k", dest="check",
|
||||||
choices=LANG,
|
choices=LANG,
|
||||||
help="check lang.po files")
|
help="check lang.po files")
|
||||||
|
|
||||||
@ -384,10 +384,10 @@ def main():
|
|||||||
|
|
||||||
# need one argument (eg, de.po)
|
# 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')],
|
choices=[file for file in os.listdir('.') if file.endswith('.po')],
|
||||||
help="list untranslated messages")
|
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')],
|
choices=[file for file in os.listdir('.') if file.endswith('.po')],
|
||||||
help="list fuzzy messages")
|
help="list fuzzy messages")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user