mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
colorized and better command sorting in help msg
This commit is contained in:
parent
718e25c973
commit
4ca9a0beac
3 changed files with 20 additions and 14 deletions
|
@ -30,11 +30,12 @@ def init(output_dir: str=OUTPUT_DIR):
|
|||
|
||||
if not is_empty:
|
||||
if existing_index:
|
||||
stderr('[√] You already have an archive setup up in this folder. To add new links, you can run:')
|
||||
stderr(' archivebox add https://example.com')
|
||||
stderr('{green}[√] You already have an archive index in this folder.{reset}'.format(**ANSI))
|
||||
stderr(' To add new links, you can run:')
|
||||
stderr(" archivebox add 'https://example.com'")
|
||||
stderr()
|
||||
stderr('[i] Fore more usage and examples, run "archivebox help" or visit:')
|
||||
stderr(' https://github.com/pirate/ArchiveBox/wiki/Usage')
|
||||
stderr(' For more usage and examples, run:')
|
||||
stderr(' archivebox help')
|
||||
# TODO: import old archivebox version's archive data folder
|
||||
|
||||
raise SystemExit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue