pyterm: increase verbosity for alias command
This commit is contained in:
parent
b1323bf0c3
commit
02f7b610a5
5
dist/tools/pyterm/pyterm.py
vendored
5
dist/tools/pyterm/pyterm.py
vendored
@ -183,7 +183,10 @@ class SerCmd(cmd.Cmd):
|
|||||||
if not line.count("="):
|
if not line.count("="):
|
||||||
sys.stderr.write("Usage: /alias <ALIAS> = <CMD>\n")
|
sys.stderr.write("Usage: /alias <ALIAS> = <CMD>\n")
|
||||||
return
|
return
|
||||||
self.aliases[line.split('=')[0].strip()] = line.split('=')[1].strip()
|
alias = line.split('=')[0].strip()
|
||||||
|
command = line.split('=')[1].strip()
|
||||||
|
self.logger.info("adding command %s for alias %s" % (command, alias))
|
||||||
|
self.aliases[alias] = command
|
||||||
|
|
||||||
def do_PYTERM_rmalias(self, line):
|
def do_PYTERM_rmalias(self, line):
|
||||||
if not self.aliases.pop(line, None):
|
if not self.aliases.pop(line, None):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user