This commit is contained in:
cryzed 2016-06-09 00:53:09 +02:00
parent 5130782777
commit b5a06a4d43

View file

@ -238,7 +238,7 @@ def main(argv=None):
shell = builtins.__xonsh_shell__
if args.mode == XonshMode.single_command:
# run a single command and exit
run_code_with_cache(args.command, shell.execer, mode='single')
run_code_with_cache(args.command.lstrip(), shell.execer, mode='single')
elif args.mode == XonshMode.script_from_file:
# run a script contained in a file
if os.path.isfile(args.file):