From d13ca2079ed425fc982ab533ebaba10452ce5451 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Sun, 19 Jun 2022 12:59:20 -0400 Subject: [PATCH] add conflicts_with arg metadata --- src/cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.rs b/src/cli.rs index 984b259..8bd251b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -5,9 +5,9 @@ use clap_complete::Shell; #[derive(Debug, Clone, Parser)] #[clap(name="steamguard-cli", bin_name="steamguard", author, version, about = "Generate Steam 2FA codes and confirm Steam trades from the command line.", long_about = None)] pub(crate) struct Args { - #[clap(short, long, help = "Steam username, case-sensitive.", long_help = "Select the account you want by steam username. Case-sensitive. By default, the first account in the manifest is selected.")] + #[clap(short, long, conflicts_with="all", help = "Steam username, case-sensitive.", long_help = "Select the account you want by steam username. Case-sensitive. By default, the first account in the manifest is selected.")] pub username: Option, - #[clap(short, long, help = "Select all accounts in the manifest.")] + #[clap(short, long, conflicts_with="username", help = "Select all accounts in the manifest.")] pub all: bool, /// The path to the maFiles directory. #[clap(short, long, help = "Specify which folder your maFiles are in. This should be a path to a folder that contains manifest.json. Default: ~/.config/steamguard-cli/maFiles")]