admin: Specify host with -a

This commit is contained in:
Denis Drakhnia 2023-10-17 16:02:57 +03:00
parent 8b857ad2a1
commit e7d846013d

View File

@ -51,7 +51,7 @@ pub fn parse() -> Cli {
opts.optflag("h", "help", "print usage help");
opts.optflag("v", "version", "print program version");
let help = format!("address to connect [default: {}]", cli.address);
opts.optopt("h", "host", &help, "ADDR");
opts.optopt("a", "host", &help, "ADDR");
let help = format!("hash length [default: {}]", cli.hash_len);
opts.optopt("l", "hash-length", &help, "N");
let help = format!("hash key [default: {}]", cli.hash_key);