add 'input-files' config option (#6059)
This commit is contained in:
@@ -6330,6 +6330,16 @@ Description
|
|||||||
operation to be ``Rold#new#`` instead of the default ``Rold/new/``
|
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
|
signals-ignore
|
||||||
--------------
|
--------------
|
||||||
Type
|
Type
|
||||||
|
|||||||
@@ -238,6 +238,13 @@ def main():
|
|||||||
return config.open_extern()
|
return config.open_extern()
|
||||||
|
|
||||||
else:
|
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:
|
if not args.urls and not args.input_files:
|
||||||
parser.error(
|
parser.error(
|
||||||
"The following arguments are required: URL\n"
|
"The following arguments are required: URL\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user