Browse Source

Fix a thing

master
Alex Mikhalev 6 years ago
parent
commit
771e3580c4
  1. 4
      tools/ugv_cmd.py

4
tools/ugv_cmd.py

@ -34,9 +34,9 @@ class CLI_CMD: @@ -34,9 +34,9 @@ class CLI_CMD:
cli_commands = []
def cli_cmd(names=[], description=""):
def cli_cmd(names=None, description=""):
def dec(fn: types.FunctionType):
if len(dec.names) is 0:
if dec.names is None:
dec.names = [fn.__name__]
cli_commands.append(CLI_CMD(fn, dec.names, dec.description))
return fn

Loading…
Cancel
Save