Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import logging
import os.path
import pickle
import shlex
import sys

from recuperabit import logic, utils
Expand Down Expand Up @@ -368,10 +369,12 @@ def main():
while True:
print('\nWrite command ("help" for details):')
try:
command = input('> ').split(' ')
command = shlex.split(input('> ').strip())
except (EOFError, KeyboardInterrupt):
print('')
exit(0)
if len(command) == 0:
continue
cmd = command[0]
arguments = command[1:]
interpret(cmd, arguments, parts, shorthands, args.outputdir)
Expand Down