Skip to content

Commit 7932c44

Browse files
committed
fix: add --version command-line arg
1 parent 82c3335 commit 7932c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use lintrunner::{
1414
};
1515

1616
#[derive(Debug, Parser)]
17-
#[clap(name = "lintrunner", about = "A lint runner", infer_subcommands(true))]
17+
#[clap(version, name = "lintrunner", infer_subcommands(true))]
1818
struct Args {
1919
/// Verbose mode (-v, or -vv to show full list of paths being linted)
2020
#[clap(short, long, parse(from_occurrences), global = true)]

0 commit comments

Comments
 (0)