Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bikeshed a better way to parse cli arguments #65

Open
o0Ignition0o opened this issue Dec 26, 2019 · 0 comments
Open

Bikeshed a better way to parse cli arguments #65

o0Ignition0o opened this issue Dec 26, 2019 · 0 comments
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

Comments

@o0Ignition0o
Copy link
Owner

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 ?

@o0Ignition0o o0Ignition0o added enhancement New feature or request question Further information is requested labels Dec 26, 2019
@o0Ignition0o o0Ignition0o added the Bikeshed Things we would love to design, that might require more time and or more minds ! label Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant