From df23ea74d9837189f1f98434f319238a44cca3bd Mon Sep 17 00:00:00 2001 From: ilitteri Date: Wed, 19 Mar 2025 18:02:09 -0300 Subject: [PATCH] Make `--eth` and `--token` conflicting options --- cli/src/cli.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/src/cli.rs b/cli/src/cli.rs index 62dbea6..ad163d7 100644 --- a/cli/src/cli.rs +++ b/cli/src/cli.rs @@ -51,6 +51,7 @@ pub(crate) enum Command { account: Address, #[clap( long = "token", + conflicts_with = "eth", help = "Specify the token address, the ETH is used as default." )] token_address: Option
, @@ -58,6 +59,7 @@ pub(crate) enum Command { long = "eth", required = false, default_value_t = false, + conflicts_with = "token_address", help = "Display the balance in ETH." )] eth: bool,