Skip to content

Commit

Permalink
chore(cli): Add another type hint for autocompletion of some args
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 19, 2024
1 parent 06e5a57 commit f9d6c20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ pub struct Cli {

// FTL: help-flag-project
/// Set project root path
#[clap(short = 'P', long, default_value = "./")]
#[clap(name = "FILE", value_hint = clap::ValueHint::DirPath)]
#[clap(short = 'P', long, default_value = "./", value_hint = clap::ValueHint::DirPath)]
pub project: path::PathBuf,

// FTL: help-flag-quiet
Expand All @@ -50,7 +49,7 @@ pub enum Commands {
Make {
// FTL: help-subcommand-make-target
/// Target(s) as defined by CaSILE in project rules
#[clap(name = "FILE", value_hint = clap::ValueHint::AnyPath)]
#[clap(value_hint = clap::ValueHint::AnyPath)]
target: Vec<String>,
},

Expand All @@ -59,11 +58,12 @@ pub enum Commands {
Run {
// FTL: help-subcommand-run-name
/// Run script name as supplied by CaSILE, toolkit, or project
#[clap(name = "FILE", value_hint = clap::ValueHint::CommandName)]
#[clap(value_hint = clap::ValueHint::CommandName)]
name: String,

// FTL: help-subcommand-run-arguments
/// Arguments to pass to script being run
#[clap(value_hint = clap::ValueHint::Unknown)]
arguments: Vec<OsString>,
},

Expand Down

0 comments on commit f9d6c20

Please sign in to comment.