mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 01:00:11 +02:00
accept multiple pattern args for removal
This commit is contained in:
@@ -55,7 +55,7 @@ def main(args=None):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'pattern',
|
'pattern',
|
||||||
nargs='?',
|
nargs='*',
|
||||||
type=str,
|
type=str,
|
||||||
default=None,
|
default=None,
|
||||||
help='URLs matching this filter pattern will be removed from the index.'
|
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')]
|
patterns = [pattern.strip() for pattern in stdin_raw_text.split('\n')]
|
||||||
else:
|
else:
|
||||||
patterns = [command.pattern]
|
patterns = command.pattern
|
||||||
|
|
||||||
remove_archive_links(
|
remove_archive_links(
|
||||||
filter_patterns=patterns, filter_type=command.filter_type,
|
filter_patterns=patterns, filter_type=command.filter_type,
|
||||||
|
Reference in New Issue
Block a user