Skip to content

Commit

Permalink
GH-525: introduce a new arg --entry-dns inside the shared_app()
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarshg6 committed Oct 8, 2024
1 parent f5572f3 commit 7d0693e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions masq_lib/src/shared_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 7d0693e

Please sign in to comment.