grpc_status/
options.rs

1use clap::{App, Arg};
2
3#[must_use]
4pub fn new() -> String {
5    let matches = App::new(env!("CARGO_PKG_NAME"))
6        .version(env!("CARGO_PKG_VERSION"))
7        .arg(
8            Arg::with_name("endpoint")
9                .help("https://10.0.1.2:8443")
10                .min_values(1)
11                .required(true),
12        )
13        .get_matches();
14
15    matches.value_of("endpoint").unwrap().into()
16}