# HG changeset patch # User Ludovic Chabant # Date 1532918951 25200 # Node ID 32c80c295769ec32c9be737a410e9315ecb406a0 # Parent 6dc64a419a712003155c12673798f8f440e20611 Make CLI arguments easier to pass. diff -r 6dc64a419a71 -r 32c80c295769 silorider/main.py --- 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',