mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Fix #1075
This commit is contained in:
parent
5130782777
commit
b5a06a4d43
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue