feat: Disable stdin from archivebox add

This commit is contained in:
Cristian 2020-07-07 12:39:36 -05:00
parent bca6a06f60
commit b68c13918f
3 changed files with 11 additions and 4 deletions

View file

@ -507,8 +507,7 @@ def add(import_str: Optional[str]=None,
if (import_str and import_path) or (not import_str and not import_path):
stderr(
'[X] You should pass either an import path as an argument, '
'or pass a list of links via stdin, but not both.\n',
'[X] You should pass an import path or a page url as an argument\n',
color='red',
)
raise SystemExit(2)