Skip to content

Commit

Permalink
Update CLI def
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Sep 11, 2023
1 parent 2c394bb commit 0b93a23
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions src/clidef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn cli(version: &'static str) -> Command {
.short('x')
.long("exe")
.conflicts_with("profile")
.help("Specify path to an executable which needs to be preserved.")
.help("Specify path to an executable which needs to be preserved")
)
.arg(
Arg::new("profile")
Expand All @@ -29,22 +29,37 @@ pub fn cli(version: &'static str) -> Command {
.conflicts_with("exe")
.help("Profile, describing whole setup")
)
.arg(
Arg::new("packages")
.short('k')
.long("pkgs")
.aliases(["packages", "packags", "packs"])
.help("Comma-separated list of packages to account")
)
.arg(
Arg::new("invert-filters")
.short('i')
.long("invert")
.action(clap::ArgAction::SetTrue)
.help("Invert filters behaviour")
)
.arg(
Arg::new("dry-run")
.short('t')
.long("dry-run")
.action(clap::ArgAction::SetTrue)
.help("Do not remove anything, only display what will be removed")
)
.arg(
Arg::new("root")
.short('r')
.long("root")
.required(true)
.help("Root filesystem, e.g. mountpoint of an image")
)

// Filters
.next_help_heading("Filters")
/*
f_prune: Vec<String>
packages: Vec<String>
targets: Vec<String>
*/
.arg(
Arg::new("f_l10n").long("l10n").action(clap::ArgAction::SetTrue).help("Leave localisation data")
)
Expand Down

0 comments on commit 0b93a23

Please sign in to comment.