Update for #2086 (lowercasing only the command)

This commit is contained in:
Miroslav Stampar
2016-08-08 15:55:39 +02:00
parent a1f85df12b
commit 6ba46bf7cf
3 changed files with 4 additions and 3 deletions

View File

@@ -723,6 +723,7 @@ def client(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT):
while True:
try:
command = raw_input("api%s> " % (" (%s)" % taskid if taskid else "")).strip()
command = re.sub(r"\A(\w+)", lambda match: match.group(1).lower(), command)
except (EOFError, KeyboardInterrupt):
print
break