Skip to content

Commit

Permalink
completions: hint generator to expand to file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19 committed Sep 12, 2023
1 parent c0e0531 commit 2fdf7a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub enum Subcommand {
#[command(visible_alias = "c")]
Compress {
/// Files to be compressed
#[arg(required = true, num_args = 1..)]
#[arg(required = true, value_hint = ValueHint::FilePath)]
files: Vec<PathBuf>,

/// The resulting file. Its extensions can be used to specify the compression formats
Expand All @@ -78,7 +78,7 @@ pub enum Subcommand {
#[command(visible_alias = "d")]
Decompress {
/// Files to be decompressed
#[arg(required = true, num_args = 1..)]
#[arg(required = true, num_args = 1.., value_hint = ValueHint::FilePath)]
files: Vec<PathBuf>,

/// Place results in a directory other than the current one
Expand All @@ -89,7 +89,7 @@ pub enum Subcommand {
#[command(visible_aliases = ["l", "ls"])]
List {
/// Archives whose contents should be listed
#[arg(required = true, num_args = 1..)]
#[arg(required = true, num_args = 1.., value_hint = ValueHint::FilePath)]
archives: Vec<PathBuf>,

/// Show archive contents as a tree
Expand Down

0 comments on commit 2fdf7a8

Please sign in to comment.