import readline, textwrap
+from shlex import split as shsplit
from rlcompleter import Completer
from lcfg2.config import ConfigEnvironment
from .common import ShconfigException, get_config_name
if len(line) == 0:
return True
- parts = line.split(' ')
+ parts = shsplit(line)
name, args = parts[0], parts[1:]
if name in ['q', 'exit']:
except KeyboardInterrupt as e:
return False
except Exception as e:
- raise e
- return False
+ raise e
\ No newline at end of file