DanielKeep / cargo-script

Cargo script subcommand
Other
729 stars 37 forks source link

Can't pass args starting with dash #40

Closed Boscop closed 7 years ago

Boscop commented 7 years ago
cargo script -- foo "-N2NH6"
error: Found argument '-N' which wasn't expected, or isn't valid in this context

Same error without the quotes. The dash is part of the arg value. How to escape the dash?

DanielKeep commented 7 years ago

This should be fixed with the update to clap.

Also, I don't know why Github bothers to parse commit messages if it won't actually close the damn issue. *sigh*