summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2018-12-01 12:25:48 +0100
committerLars-Dominik Braun <lars@6xq.net>2018-12-01 12:25:48 +0100
commit6176991ac7ff0e6dcb4612b43da89abd350e3aa5 (patch)
treebb945292a0190efcf112cf52e93838474de6b27e
parentac4e3d71e645d532fd176cce8e2ac2aedcbf0035 (diff)
downloadcrocoite-6176991ac7ff0e6dcb4612b43da89abd350e3aa5.tar.gz
crocoite-6176991ac7ff0e6dcb4612b43da89abd350e3aa5.tar.bz2
crocoite-6176991ac7ff0e6dcb4612b43da89abd350e3aa5.zip
cli: Fix --behavior
-rw-r--r--crocoite/cli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/crocoite/cli.py b/crocoite/cli.py
index 390cae6..f34424e 100644
--- a/crocoite/cli.py
+++ b/crocoite/cli.py
@@ -45,10 +45,11 @@ def single ():
parser.add_argument('--browser', help='DevTools URL', metavar='URL')
parser.add_argument('--timeout', default=1*60*60, type=int, help='Maximum time for archival', metavar='SEC')
parser.add_argument('--idle-timeout', default=30, type=int, help='Maximum idle seconds (i.e. no requests)', dest='idleTimeout', metavar='SEC')
- parser.add_argument('--behavior', help='Comma-separated list of enabled behavior scripts',
+ parser.add_argument('--behavior', help='Enable behavior script',
dest='enabledBehaviorNames',
default=list (behavior.availableMap.keys ()),
- choices=list (behavior.availableMap.keys ()))
+ choices=list (behavior.availableMap.keys ()),
+ metavar='NAME', nargs='*')
parser.add_argument('url', help='Website URL', metavar='URL')
parser.add_argument('output', help='WARC filename', metavar='FILE')