Grmbl, dummy argparse...
authorBastien Montagne <montagne29@wanadoo.fr>
Sun, 8 Jul 2012 17:18:01 +0000 (17:18 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 8 Jul 2012 17:18:01 +0000 (17:18 +0000)
release/scripts/modules/bl_i18n_utils/update_mo.py

index 1b415e7bd7cb7ad0ac7f8cdc04dcb57d4bde4bf0..2ca24a76cfe046dd2bed32c189a992c94452a1bf 100755 (executable)
@@ -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