Add verbose option for extracting and creating archives to list files

(to be implemented)
This commit is contained in:
Nathan Fisher 2024-03-31 23:17:59 -04:00
parent 3bc8b9aa80
commit 22faadc34e

View File

@ -27,6 +27,11 @@ pub fn extract() -> Command {
.long("quiet") .long("quiet")
.visible_alias("silent") .visible_alias("silent")
.action(ArgAction::SetFalse), .action(ArgAction::SetFalse),
Arg::new("verbose")
.help("List the extracted files")
.short('v')
.long("verbose")
.action(ArgAction::SetTrue),
Arg::new("stdin") Arg::new("stdin")
.help("Read archive from stdin") .help("Read archive from stdin")
.short('i') .short('i')
@ -99,6 +104,11 @@ pub fn create() -> Command {
.long("quiet") .long("quiet")
.visible_alias("silent") .visible_alias("silent")
.action(ArgAction::SetFalse), .action(ArgAction::SetFalse),
Arg::new("verbose")
.help("List the archived files")
.short('v')
.long("verbose")
.action(ArgAction::SetTrue),
Arg::new("stdout") Arg::new("stdout")
.help("Write archive to stdout") .help("Write archive to stdout")
.short('o') .short('o')