mirror of
https://github.com/astral-sh/ruff
synced 2026-01-24 06:50:59 -05:00
Add --version flag (#222)
This commit is contained in:
committed by
GitHub
parent
9e0daac561
commit
cf6a23b83c
@@ -29,6 +29,7 @@ const CARGO_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
#[derive(Debug, Parser)]
|
||||
#[clap(name = format!("{CARGO_PKG_NAME} (v{CARGO_PKG_VERSION})"))]
|
||||
#[clap(about = "An extremely fast Python linter.", long_about = None)]
|
||||
#[clap(version)]
|
||||
struct Cli {
|
||||
#[clap(parse(from_os_str), value_hint = ValueHint::AnyPath, required = true)]
|
||||
files: Vec<PathBuf>,
|
||||
|
||||
Reference in New Issue
Block a user