mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
write stderr instead of stdout for version info
This commit is contained in:
parent
4c4b1e6a4b
commit
d159e674e1
1 changed files with 3 additions and 3 deletions
|
@ -156,15 +156,15 @@ def log_cli_command(subcommand: str, subcommand_args: List[str], stdin: Optional
|
||||||
from ..config import VERSION, ANSI
|
from ..config import VERSION, ANSI
|
||||||
cmd = ' '.join(('archivebox', subcommand, *subcommand_args))
|
cmd = ' '.join(('archivebox', subcommand, *subcommand_args))
|
||||||
stdin_hint = ' < /dev/stdin' if not stdin.isatty() else ''
|
stdin_hint = ' < /dev/stdin' if not stdin.isatty() else ''
|
||||||
print('{black}[i] [{now}] ArchiveBox v{VERSION}: {cmd}{stdin_hint}{reset}'.format(
|
stderr('{black}[i] [{now}] ArchiveBox v{VERSION}: {cmd}{stdin_hint}{reset}'.format(
|
||||||
now=datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
now=datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
|
||||||
VERSION=VERSION,
|
VERSION=VERSION,
|
||||||
cmd=cmd,
|
cmd=cmd,
|
||||||
stdin_hint=stdin_hint,
|
stdin_hint=stdin_hint,
|
||||||
**ANSI,
|
**ANSI,
|
||||||
))
|
))
|
||||||
print('{black} > {pwd}{reset}'.format(pwd=pwd, **ANSI))
|
stderr('{black} > {pwd}{reset}'.format(pwd=pwd, **ANSI))
|
||||||
print()
|
stderr()
|
||||||
|
|
||||||
### Parsing Stage
|
### Parsing Stage
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue