Skip to content

Commit 96c6122

Browse files
committed
cmd(arguments): allow multiple --wpull-args
1 parent 6269289 commit 96c6122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libgrabsite/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def is_multicast(text):
112112
@click.option('--ua', default="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0",
113113
metavar='STRING', help='Send User-Agent: STRING instead of pretending to be Firefox on Windows.')
114114

115-
@click.option('--wpull-args', default="",
115+
@click.option('--wpull-args', multiple=True, default=[],
116116
metavar='ARGS', help=
117117
r'String containing additional arguments to pass to wpull; '
118118
r'see ~/.local/bin/wpull --help. ARGS is split with shlex.split '
@@ -267,7 +267,7 @@ def main(concurrency, concurrent, delay, recursive, offsite_links, igsets,
267267
args += ["--recursive"]
268268

269269
if wpull_args:
270-
args += shlex.split(wpull_args)
270+
args += wpull_args
271271

272272
DIR_input_file = os.path.join(working_dir, "input_file")
273273
if start_url:

0 commit comments

Comments
 (0)