diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-08 21:18:01 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-07-08 21:18:01 +0400 |
commit | 063f78041af082222f8a5c6dc4fd3f6f956ae9fe (patch) | |
tree | 4b37029de3e908697506af7f8fc29920ec2882ee /release/scripts | |
parent | dc459c8fea37ea3f86bc1cad2d83dd9ef3f29491 (diff) |
Grmbl, dummy argparse...
Diffstat (limited to 'release/scripts')
-rwxr-xr-x | release/scripts/modules/bl_i18n_utils/update_mo.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/update_mo.py b/release/scripts/modules/bl_i18n_utils/update_mo.py index 1b415e7bd7c..2ca24a76cfe 100755 --- a/release/scripts/modules/bl_i18n_utils/update_mo.py +++ b/release/scripts/modules/bl_i18n_utils/update_mo.py @@ -69,8 +69,10 @@ def main(): "under {}.".format(TRUNK_MO_DIR)) parser.add_argument('langs', metavar='ISO_code', nargs='*', help="Restrict processed languages to those.") - parser.add_argument('po', help="Only process that po file (implies --mo).") - parser.add_argument('mo', help="Mo file to generate (implies --po).") + parser.add_argument('po', help="Only process that po file (implies --mo).", + nargs='?') + parser.add_argument('mo', help="Mo file to generate (implies --po).", + nargs='?') args = parser.parse_args() ret = 0 |