changeset 7:32c80c295769

Make CLI arguments easier to pass.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 29 Jul 2018 19:49:11 -0700
parents 6dc64a419a71
children da8376f8d13a
files silorider/main.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/silorider/main.py	Sun Jul 29 19:45:53 2018 -0700
+++ b/silorider/main.py	Sun Jul 29 19:49:11 2018 -0700
@@ -23,7 +23,7 @@
 
     parser.add_argument(
         'silo',
-        nargs='+',
+        action='append',
         help=("The name of the silo to authenticate. "
               "Use 'all' to authenticate all declared silos."))
     parser.add_argument(
@@ -47,11 +47,11 @@
 
     parser.add_argument(
         'site_url',
-        nargs='+',
+        action='append',
         help="URL of the website to read from.")
     parser.add_argument(
         '-s', '--silo',
-        nargs='*',
+        action='append',
         help="Only use the given silo(s).")
     parser.add_argument(
         '--no-cache',
@@ -72,11 +72,11 @@
 
     parser.add_argument(
         'site_url',
-        nargs='+',
+        action='append',
         help="URL of the website to read from.")
     parser.add_argument(
         '-s', '--silo',
-        nargs='*',
+        action='append',
         help="Which silo to populate.")
     parser.add_argument(
         '--until',