From 80a5651b98c3e2d1914c7099e5c3b4ac235d3c52 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 28 Jul 2024 22:24:31 -0400 Subject: [PATCH] fix exclusions for rbw gen cli options apparently this has been broken for a while, and clap just doesn't tell you about it? this also fixes `rbw gen-completions` when debug assertions are enabled. fixes #198 --- CHANGELOG.md | 7 +++++++ src/bin/rbw/main.rs | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 819e02a..2f77c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## Unreleased + +### Fixed + +* Fix preventing the password type selectors in `rbw generate` from being + used together. (antecrescent, #198) + ## [1.12.1] - 2024-07-28 ### Fixed diff --git a/src/bin/rbw/main.rs b/src/bin/rbw/main.rs index e30c3a9..609e049 100644 --- a/src/bin/rbw/main.rs +++ b/src/bin/rbw/main.rs @@ -145,8 +145,8 @@ enum Opt { password to the database.", visible_alias = "gen", group = clap::ArgGroup::new("password-type").args(&[ - "no-symbols", - "only-numbers", + "no_symbols", + "only_numbers", "nonconfusables", "diceware", ])