Skip to content

Commit

Permalink
correct the usage of default_missing_value
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Nov 9, 2023
1 parent 31a91c4 commit 4e924c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xcompress"
version = "0.12.1"
version = "0.12.2"
authors = ["Magic Len <len@magiclen.org>"]
edition = "2021"
rust-version = "1.70"
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub struct CLIArgs {

#[arg(short, long)]
#[arg(global = true)]
#[arg(default_missing_value = "")]
#[arg(num_args = 0..=1, default_missing_value = "")]
#[arg(help = "Set password for your archive file. (Only supports 7Z, ZIP and RAR) Set an \
empty string to read a password from stdin")]
pub password: Option<String>,
Expand Down
1 change: 1 addition & 0 deletions src/commands/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub fn handle_compression(cli_args: CLIArgs) -> anyhow::Result<()> {
fastest_compression,
split,
recovery_record,
..
} = cli_args.command
{
for input_path in input_paths.iter_mut() {
Expand Down

0 comments on commit 4e924c9

Please sign in to comment.