From 22faadc34e9d27fd97621bf189a514a0f5e6c622 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Sun, 31 Mar 2024 23:17:59 -0400 Subject: [PATCH] Add verbose option for extracting and creating archives to list files (to be implemented) --- src/cli.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index a43e001..0b4ad10 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -27,6 +27,11 @@ pub fn extract() -> Command { .long("quiet") .visible_alias("silent") .action(ArgAction::SetFalse), + Arg::new("verbose") + .help("List the extracted files") + .short('v') + .long("verbose") + .action(ArgAction::SetTrue), Arg::new("stdin") .help("Read archive from stdin") .short('i') @@ -99,6 +104,11 @@ pub fn create() -> Command { .long("quiet") .visible_alias("silent") .action(ArgAction::SetFalse), + Arg::new("verbose") + .help("List the archived files") + .short('v') + .long("verbose") + .action(ArgAction::SetTrue), Arg::new("stdout") .help("Write archive to stdout") .short('o')