mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-29 05:55:28 -04:00
show deprecation warning for archivebox setup command
This commit is contained in:
parent
e315905721
commit
3b9e48ead8
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ BUILTIN_LIST = list
|
|||
CLI_DIR = Path(__file__).resolve().parent
|
||||
|
||||
# rewrite setup -> install for backwards compatibility
|
||||
if sys.argv[1] == 'setup':
|
||||
if len(sys.argv) > 1 and sys.argv[1] == 'setup':
|
||||
from rich import print
|
||||
print(':warning: [bold red]DEPRECATED[/bold red] `archivebox setup` is deprecated, use `archivebox install` instead')
|
||||
sys.argv[1] = 'install'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue