add 'input-files' config option (#6059)

pull/6104/head
Mike Fährmann 3 weeks ago
parent eef5beb841
commit b46169cfd2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -6330,6 +6330,16 @@ Description
operation to be ``Rold#new#`` instead of the default ``Rold/new/``
input-files
-----------
Type
``list`` of |Path|_
Example
``["~/urls.txt", "$HOME/input"]``
Description
Additional# input files.
signals-ignore
--------------
Type

@ -238,6 +238,13 @@ def main():
return config.open_extern()
else:
input_files = config.get((), "input-files")
if input_files:
for input_file in input_files:
if isinstance(input_file, str):
input_file = (input_file, None)
args.input_files.append(input_file)
if not args.urls and not args.input_files:
parser.error(
"The following arguments are required: URL\n"

Loading…
Cancel
Save