Upgrade to clap 4 (#272)

This commit is contained in:
Anders Kaseorg
2022-09-28 14:11:57 -07:00
committed by GitHub
parent 949e4d4077
commit 886def13bd
6 changed files with 30 additions and 38 deletions

View File

@@ -9,7 +9,7 @@ use ruff::fs;
#[derive(Debug, Parser)]
struct Cli {
#[clap(parse(from_os_str), value_hint = ValueHint::FilePath, required = true)]
#[arg(value_hint = ValueHint::FilePath, required = true)]
file: PathBuf,
}

View File

@@ -9,7 +9,7 @@ use ruff::fs;
#[derive(Debug, Parser)]
struct Cli {
#[clap(parse(from_os_str), value_hint = ValueHint::FilePath, required = true)]
#[arg(value_hint = ValueHint::FilePath, required = true)]
file: PathBuf,
}