diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7154af34..d155587b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -64,7 +64,7 @@ jobs: - name: Install cargo-llvm-cov run: | rustup component add llvm-tools-preview - cargo install cargo-llvm-cov --version 0.5.37 --locked + cargo install cargo-llvm-cov --version 0.6.10 --locked - name: Generate code coverage run: | @@ -72,7 +72,7 @@ jobs: # The token is generally not needed, but sometimes the default shared token hits limits. - name: Upload to codecov.io - uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 + uses: Wandalen/wretry.action@6feedb7dedadeb826de0f45ff482b53b379a7844 # v3.5.0 with: action: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # 3.1.4 with: | diff --git a/src/options/args.rs b/src/options/args.rs index 92afa846..041ac7ec 100644 --- a/src/options/args.rs +++ b/src/options/args.rs @@ -564,7 +564,7 @@ pub struct OtherArgs { #[arg(short = 'h', long, action = ArgAction::Help, help = "Prints help info (for more details use `--help`.")] help: (), - #[arg(short = 'v', long, action = ArgAction::Version, help = "Prints version information.")] + #[arg(short = 'V', long, action = ArgAction::Version, help = "Prints version information.")] version: (), } diff --git a/tests/integration/arg_tests.rs b/tests/integration/arg_tests.rs index 033e51ff..f0f4ec3b 100644 --- a/tests/integration/arg_tests.rs +++ b/tests/integration/arg_tests.rs @@ -161,3 +161,17 @@ fn test_gpu_flag() { "unexpected argument '--enable_gpu' found", )); } + +/// Sanity test due to . +#[test] +fn test_version() { + btm_command(&["--version"]).assert().success(); + btm_command(&["-V"]).assert().success(); +} + +/// Sanity test due to . +#[test] +fn test_help() { + btm_command(&["--help"]).assert().success(); + btm_command(&["-h"]).assert().success(); +}