Actually, output help to stderr, as argparse itself does.
This commit is contained in:
parent
9c64767ed1
commit
a609a2b8c3
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def cli(args=None, output_file=sys.stdout):
|
|||
elif args.command == "fetch":
|
||||
print(cmd_fetch(args), end="", file=output_file)
|
||||
else:
|
||||
parser.print_help(file=output_file)
|
||||
parser.print_help(file=sys.stderr)
|
||||
except BrokenPipeError:
|
||||
logging.debug("The output pipe was closed early.")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue