mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 13:28:29 +00:00
accept multiple pattern args for removal
This commit is contained in:
parent
21174da014
commit
8b4b13b667
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ def main(args=None):
|
|||
)
|
||||
parser.add_argument(
|
||||
'pattern',
|
||||
nargs='?',
|
||||
nargs='*',
|
||||
type=str,
|
||||
default=None,
|
||||
help='URLs matching this filter pattern will be removed from the index.'
|
||||
|
@ -74,7 +74,7 @@ def main(args=None):
|
|||
|
||||
patterns = [pattern.strip() for pattern in stdin_raw_text.split('\n')]
|
||||
else:
|
||||
patterns = [command.pattern]
|
||||
patterns = command.pattern
|
||||
|
||||
remove_archive_links(
|
||||
filter_patterns=patterns, filter_type=command.filter_type,
|
||||
|
|
Loading…
Add table
Reference in a new issue