mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-14 02:24:06 +02:00
show deprecation warning for archivebox setup command
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user