Skip to content

Commit b167d02

Browse files
committed
fix: update allowed digits range from command-line interface
1 parent 45b4a5f commit b167d02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/arguments/add.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct AddArgs {
4040
long,
4141
default_value_t = 6,
4242
default_value_if("type", "STEAM", "5"),
43-
value_parser=value_parser!(u64).range(0..=9)
43+
value_parser=value_parser!(u64).range(1..=10)
4444
)]
4545
pub digits: u64,
4646

src/arguments/edit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct EditArgs {
2424
pub algorithm: Option<OTPAlgorithm>,
2525

2626
/// Code digits
27-
#[arg(short, long, value_parser=value_parser!(u64).range(0..=9))]
27+
#[arg(short, long, value_parser=value_parser!(u64).range(1..=10))]
2828
pub digits: Option<u64>,
2929

3030
/// Code period

0 commit comments

Comments
 (0)