Skip to content

Commit

Permalink
pyterm: increase verbosity for alias command
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegHahm committed Aug 1, 2014
1 parent b1323bf commit 02f7b61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/tools/pyterm/pyterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ def do_PYTERM_alias(self, line):
if not line.count("="):
sys.stderr.write("Usage: /alias <ALIAS> = <CMD>\n")
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):
if not self.aliases.pop(line, None):
Expand Down

0 comments on commit 02f7b61

Please sign in to comment.