Move warning text to stderr, where it belongs

This commit is contained in:
grym 2022-06-04 11:06:02 -04:00
parent c2b90f23d7
commit 1bbf0980ce
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ def shorten(urls: t.List[str] = typer.Argument(..., min=1), base_url=BASE_URL):
if base_url == BASE_URL.default:
typer.secho(
f"Warning: shortening is often disabled "
f"for {BASE_URL.default}, command may fail",
f"for {base_url}, command may fail",
fg=typer.colors.RED,
err=True,
)
typer.echo(api.shorten(base_url, urls))