1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 15:20:09 -07:00

Print error message to stderr (#66)

This commit is contained in:
Adrian Sampson 2020-01-11 11:43:48 -05:00
parent a1cd9795c6
commit c5fb01e7cc

View File

@ -161,7 +161,8 @@ def example_command(client, cmd, args):
func = EXAMPLE_COMMANDS.get(cmd) func = EXAMPLE_COMMANDS.get(cmd)
if not func: if not func:
print("Invalid command: '{}'.\n" print("Invalid command: '{}'.\n"
"Use one of: {}".format(cmd, ', '.join(EXAMPLE_COMMANDS))) "Use one of: {}".format(cmd, ', '.join(EXAMPLE_COMMANDS)),
file=sys.stderr)
return return
func(client, *args) func(client, *args)