Fix broken ordering of args when parsing command with env vars. (#1841)

This commit is contained in:
Jason Gedge
2020-05-24 19:26:27 -04:00
committed by GitHub
parent 8a99d112fc
commit 005d76cf57
3 changed files with 17 additions and 1 deletions

View File

@@ -55,6 +55,12 @@ fn main() -> Result<(), Box<dyn Error>> {
.help("the nu script to run")
.index(1),
)
.arg(
Arg::with_name("args")
.help("positional args (used by --testbin)")
.index(2)
.multiple(true),
)
.get_matches();
if let Some(bin) = matches.value_of("testbin") {