mirror of
https://github.com/danbulant/nushell
synced 2026-05-20 21:08:34 +00:00
Let's the expander look for tokens from start. (#1293)
This commit is contained in:
parent
caa6830184
commit
f20a4a42e8
1 changed files with 4 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ pub fn parse_command_tail(
|
|||
Ok((pos, flag)) => {
|
||||
let result = expand_flag(tail, *syntax_type, flag, pos);
|
||||
|
||||
tail.move_to(0);
|
||||
|
||||
match result {
|
||||
Ok(expr) => {
|
||||
named.insert_mandatory(name, expr);
|
||||
|
|
@ -78,6 +80,8 @@ pub fn parse_command_tail(
|
|||
Ok(Some((pos, flag))) => {
|
||||
let result = expand_flag(tail, *syntax_type, flag, pos);
|
||||
|
||||
tail.move_to(0);
|
||||
|
||||
match result {
|
||||
Ok(expr) => {
|
||||
named.insert_optional(name, Some(expr));
|
||||
|
|
|
|||
Loading…
Reference in a new issue