Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prsabahrami committed Sep 6, 2024
1 parent f14cac3 commit 5ebfdde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/deno_task_shell/src/shell/commands/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn parse_arg_kinds(flags: &mut [String]) -> Vec<ArgKind> {
} else if arg == "--" {
had_dash_dash = true;
} else if arg.starts_with("--") {
result.push(ArgKind::LongFlag(&arg.strip_prefix("--").unwrap()));
result.push(ArgKind::LongFlag(arg.strip_prefix("--").unwrap()));
} else if arg.starts_with('-') {
if arg.parse::<f64>().is_ok() {
result.push(ArgKind::Arg(arg));
Expand Down

0 comments on commit 5ebfdde

Please sign in to comment.