From c280ce2313bdc64e791e7f202f00d0d3ad42767f Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Mon, 12 Aug 2024 13:07:49 +0300 Subject: [PATCH] feat(cli): Add completion hint so shells know when to provide paths --- src/cli.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 464b81b..becedaa 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -25,5 +25,6 @@ pub struct Cli { pub quiet: bool, /// Optional list of paths to operate on instead of default which is all files tracked by Git - pub paths: Vec, + #[arg(value_hint = clap::ValueHint::FilePath)] + pub paths: Option>, }