Commit 7d37dbc4 authored by AdminXVII's avatar AdminXVII Committed by Michael Aaron Murphy
Browse files

fix: Fix @args in interactive mode: use [ "ion" ]

parent 83939f7d
......@@ -203,7 +203,14 @@ fn main() {
shell.variables_mut().set(
"args",
Value::Array(
command_line_args.args.into_iter().map(|arg| Value::Str(arg.into())).collect(),
if script_path.is_some() {
command_line_args.args
} else {
vec![std::env::args().next().unwrap()]
}
.into_iter()
.map(|arg| Value::Str(arg.into()))
.collect(),
),
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment