Skip to content

Commit

Permalink
Auto merge of rust-lang#16654 - graemer957:feature/short_version_flag…
Browse files Browse the repository at this point in the history
…, r=lnicola

Add short flag -V for consistency with other rust tooling

Minor change to add the `-V` short flag to `rust-analyzer` to bring it in-line with other rust tooling such as:

> rustc -V
```bash
rustc 1.76.0 (07dca48 2024-02-04)
```

> rustup -V
```bash
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.76.0 (07dca48 2024-02-04)`
```

> cargo -V
```bash
cargo 1.76.0 (c84b36747 2024-01-18)
```
  • Loading branch information
bors committed Feb 24, 2024
2 parents 03b3cb6 + 30429f8 commit 4a8d0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rust-analyzer/src/cli/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ xflags::xflags! {

default cmd lsp-server {
/// Print version.
optional --version
optional -V, --version

/// Dump a LSP config JSON schema.
optional --print-config-schema
Expand Down

0 comments on commit 4a8d0f7

Please sign in to comment.