// Returns the command line argument matcher.
Returns the command line argument matcher.
Returns the command line argument matcher .
fn cmd_line_matches() -> ArgMatches<'static> {
    App::new("tperf")
        .about("Load test for the transport layer")
        .arg(
            Arg::with_name(ARG_NODE_ID)
                .long("node_id")
                .help("Self NodeId")
                .required(true)
                .takes_value(true),
        )
        .arg(
            Arg::with_name(ARG_PEER_NODE_ID)
                .long("peer_node_id")
                .help("Peer NodeId")
                .required(true)
                .takes_value(true),
        )
        .arg(
            Arg::with_name(ARG_NODE_IP)
                .long("node_ip")
                .help("Self IP address")
                .required(true)
                .takes_value(true),
        )
        .arg(
            Arg::with_name(ARG_PEER_NODE_IP)
                .long("peer_node_ip")
                .help("Peer IP address")
                .required(true)
                .takes_value(true),
        )
        .arg(
            Arg::with_name(ARG_ROLE)
                .long("role")
                .help("Client or server")
                .required(true)
                .takes_value(true),
        )
        .arg(
            Arg::with_name(ARG_MSG_SIZE)
                .long("message_size")
                .help("Message size")
                .default_value("1024")
                .takes_value(true),
        )
        .arg(
            Arg::with_name(ARG_MSG_COUNT)
                .long("message_count")
                .help("Message count")
                .default_value("1000")
                .takes_value(true),
        )
        .arg(
            Arg::with_name(ARG_RPS)
                .long("rps")
                .help(
                    "requests/sec to send. If not specified, the client requests will be \
                       submitted with no throttling",
                )
                .takes_value(true),
        )
        .get_matches()
}
fn cmd_line_matches ( ) -> ArgMatches < ' static > { App :: new ( " " ) . about ( " " ) . arg ( Arg :: with_name ( ARG_NODE_ID ) . long ( " " ) . help ( " " ) . required ( true ) . takes_value ( true ) , ) . arg ( Arg :: with_name ( ARG_PEER_NODE_ID ) . long ( " " ) . help ( " " ) . required ( true ) . takes_value ( true ) , ) . arg ( Arg :: with_name ( ARG_NODE_IP ) . long ( " " ) . help ( " " ) . required ( true ) . takes_value ( true ) , ) . arg ( Arg :: with_name ( ARG_PEER_NODE_IP ) . long ( " " ) . help ( " " ) . required ( true ) . takes_value ( true ) , ) . arg ( Arg :: with_name ( ARG_ROLE ) . long ( " " ) . help ( " " ) . required ( true ) . takes_value ( true ) , ) . arg ( Arg :: with_name ( ARG_MSG_SIZE ) . long ( " " ) . help ( " " ) . default_value ( " " ) . takes_value ( true ) , ) . arg ( Arg :: with_name ( ARG_MSG_COUNT ) . long ( " " ) . help ( " " ) . default_value ( " " ) . takes_value ( true ) , ) . arg ( Arg :: with_name ( ARG_RPS ) . long ( " " ) . help ( " \
 " , ) . takes_value ( true ) , ) . get_matches ( ) }
Returns the command line argument matcher.
Returns the command line argument matcher .