the (better) continuation of lish :)

This commit is contained in:
Rafael.Timmerberg 2013-08-15 02:34:42 +02:00
commit 06a7a88672

View file

@ -15,6 +15,8 @@ class LishFrontend(Frontend):
print("linspector interactive shell: Enter h or help for commands") print("linspector interactive shell: Enter h or help for commands")
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
jobs = kwargs["jobs"] jobs = kwargs["jobs"]
parser.add_argument("action", choices=["start", "stop"])
parser.add_argument("-l", "--list", help="list current jobs") parser.add_argument("-l", "--list", help="list current jobs")
while True: while True:
@ -23,7 +25,7 @@ class LishFrontend(Frontend):
print(rawInput) print(rawInput)
args = None args = None
try: try:
args = parser.parse_args(rawInput) args = parser.parse_args(rawInput.split(" "))
except: except:
pass pass