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:
parent
a1cd9795c6
commit
c5fb01e7cc
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user