From 7d0693e1c0cad75a4808a2019347879d9b5fbd7c Mon Sep 17 00:00:00 2001 From: utkarshg6 Date: Tue, 8 Oct 2024 11:50:36 +0530 Subject: [PATCH] GH-525: introduce a new arg --entry-dns inside the shared_app() --- masq_lib/src/shared_schema.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/masq_lib/src/shared_schema.rs b/masq_lib/src/shared_schema.rs index 276108d2e..c1c6c92ba 100644 --- a/masq_lib/src/shared_schema.rs +++ b/masq_lib/src/shared_schema.rs @@ -50,6 +50,7 @@ pub const EARNING_WALLET_HELP: &str = (case-insensitive). If you already have a derivation-path earning wallet, don't supply this. \ If you have supplied an earning wallet address before, either don't supply it again or be \ careful to supply exactly the same one you supplied before."; +pub const ENTRY_DNS_HELP: &str = "Specify whether to use entry DNS."; pub const IP_ADDRESS_HELP: &str = "The public IP address of your MASQ Node: that is, the IPv4 \ address at which other Nodes can contact yours. If you're running your Node behind \ a router, this will be the IP address of the router. If this IP address starts with 192.168 or 10.0, \ @@ -408,6 +409,14 @@ pub fn shared_app(head: App<'static, 'static>) -> App<'static, 'static> { EARNING_WALLET_HELP, common_validators::validate_ethereum_address, )) + .arg( + Arg::with_name("entry-dns") + .long("entry-dns") + .value_name("ENTRY-DNS") + .required(false) + .takes_value(false) + .help(ENTRY_DNS_HELP), + ) .arg( Arg::with_name("fake-public-key") .long("fake-public-key") @@ -741,6 +750,7 @@ mod tests { If you have supplied an earning wallet address before, either don't supply it again or be \ careful to supply exactly the same one you supplied before." ); + assert_eq!(ENTRY_DNS_HELP, "Specify whether to use entry DNS."); assert_eq!( IP_ADDRESS_HELP, "The public IP address of your MASQ Node: that is, the IPv4 \