aboutsummaryrefslogtreecommitdiff
path: root/bcst/args.py
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2020-04-22 08:20:06 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2020-04-22 08:20:06 +0200
commit24ef10da650d091e67bd82ec3f9b329bcee1a15e (patch)
tree0949631ce27a2f494c1d34b6a086c8afb5030c9e /bcst/args.py
parenta7217345e1cf9fa878e271fcc199f9a18eb9637f (diff)
Update package
Diffstat (limited to 'bcst/args.py')
-rw-r--r--bcst/args.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bcst/args.py b/bcst/args.py
index 6ae54bf..993c9ed 100644
--- a/bcst/args.py
+++ b/bcst/args.py
@@ -3,7 +3,9 @@
import argparse
args_parser = argparse.ArgumentParser()
-args_parser.add_argument("resource", help="A JSON resource file.")
-args_parser.add_argument("destination", help="Start page folder name.")
+args_parser.add_argument("resource", nargs="?", help="A JSON resource file.")
+args_parser.add_argument("destination", nargs="?",help="Start page folder name.")
+args_parser.add_argument("-l","--list", dest="list",action="store_true", help="List available themes.")
+args_parser.add_argument("-e","--extract", metavar="theme",dest="extract", help="Extract theme resource.")
args = args_parser.parse_args()