Skip to content

Commit a4bdb0f

Browse files
committed
interface: add value_hint for profile args to suggest file paths
Signed-off-by: NotAShelf <[email protected]> Change-Id: I6a6a69644cca0780985012b18715ffaec0eb76d5
1 parent 814d921 commit a4bdb0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interface.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ pub struct OsRebuildArgs {
230230
pub build_host: Option<String>,
231231

232232
/// Path to Nix' system profile
233-
#[arg(long, short = 'P')]
233+
#[arg(long, short = 'P', value_hint = clap::ValueHint::FilePath)]
234234
pub profile: Option<std::path::PathBuf>,
235235
}
236236

@@ -291,7 +291,7 @@ pub struct OsRollbackArgs {
291291
pub diff: DiffType,
292292

293293
/// Path to Nix' system profile for rollback
294-
#[arg(long, short = 'P')]
294+
#[arg(long, short = 'P', value_hint = clap::ValueHint::FilePath)]
295295
pub profile: Option<std::path::PathBuf>,
296296
}
297297

@@ -524,7 +524,7 @@ pub struct HomeRebuildArgs {
524524
pub backup_extension: Option<String>,
525525

526526
/// Path to Home-Manager profile
527-
#[arg(long, short = 'P')]
527+
#[arg(long, short = 'P', value_hint = clap::ValueHint::FilePath)]
528528
pub profile: Option<std::path::PathBuf>,
529529
}
530530

@@ -637,7 +637,7 @@ pub struct DarwinRebuildArgs {
637637
pub bypass_root_check: bool,
638638

639639
/// Path to Darwin system profile
640-
#[arg(long, short = 'P')]
640+
#[arg(long, short = 'P', value_hint = clap::ValueHint::FilePath)]
641641
pub profile: Option<std::path::PathBuf>,
642642
}
643643

0 commit comments

Comments
 (0)