-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linter: Add support for
--version
flag (#257)
As mentioned by @ChristopherBiscardi on Discord, `bevy_lint` does not yet support the `--version` flag! `--version` is useful to see what version of the linter is installed, and whether it can be updated or not. This PR adds support for `--version` and does some minor refactors to `bevy_lint/src/bin/main.rs`. ## Example ```bash $ cargo run -p bevy_lint -- --version bevy_lint 0.2.0-dev # Or: $ bevy_lint --version bevy_lint 0.2.0-dev ``` ## Future Work At some point I would like to include additional information if `--verbose` is also specified, just like how Cargo does with `cargo --version --verbose`. At the very least, I would like to expose the Rust toolchain channel required (which we already have access to with `RUST_TOOLCHAIN_CHANNEL`). --------- Co-authored-by: DAA <[email protected]>
- Loading branch information
1 parent
b0bb3f6
commit f1e871b
Showing
1 changed file
with
60 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters