Bikeshed a better way to parse cli arguments #65
Labels
Bikeshed
Things we would love to design, that might require more time and or more minds !
enhancement
New feature or request
question
Further information is requested
We're slowly adding more and more options to cargo-scout, and it might be a bit hard to remember them all.
clippy is doing something interesting in their arguments parsing by splitting arguments until they hit
--
and change the arguments purpose.Maybe we can try to bikeshed something like that:
parse the presence (or not) of +nightly (cargo option).
parse until the first
--
and make it VCS arguments (git options).parse until the second
--
and make it Project arguments (cargo toml options)parse until the end and make it Linter arguments (clippy options)
We could even take out the last given argument as a working directory/current_dir path.
Would that be a better overall and more generic approach to linters and options ?
The text was updated successfully, but these errors were encountered: