From 0b93a23da47cde9138a1e6db61c5c4896e725d85 Mon Sep 17 00:00:00 2001 From: Bo Maryniuk Date: Mon, 11 Sep 2023 18:14:12 +0200 Subject: [PATCH] Update CLI def --- src/clidef.rs | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/clidef.rs b/src/clidef.rs index 2121861..d132864 100644 --- a/src/clidef.rs +++ b/src/clidef.rs @@ -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") @@ -29,6 +29,13 @@ 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') @@ -36,15 +43,23 @@ pub fn cli(version: &'static str) -> Command { .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 - - packages: Vec - targets: Vec - */ .arg( Arg::new("f_l10n").long("l10n").action(clap::ArgAction::SetTrue).help("Leave localisation data") )