mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
feat: Disable stdin from archivebox add
This commit is contained in:
parent
bca6a06f60
commit
b68c13918f
3 changed files with 11 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue