pub fn config_args<'a: 'b, 'b>(app: App<'a, 'b>) -> App<'a, 'b> {
        app

        // config
        .subcommand(Config::rtrd_args(SubCommand::with_name("config")
            .about("Prints the current config and exits.")
        ))

        // vrps
        .subcommand(SubCommand::with_name("vrps")
            .about("Produces a list of validated ROA payload.")
            .arg(Arg::with_name("output")
                .short("o")
                .long("output")
                .value_name("FILE")
                .help("output file")
                .takes_value(true)
                .default_value("-")
            )
            .arg(Arg::with_name("format")
                .short("f")
                .long("format")
                .value_name("FORMAT")
                .possible_values(&[
                    "csv", "csvext", "json", "openbgpd", "rpsl", "none"
                ])
                .default_value("csv")
                .help("sets the output format")
                .takes_value(true)
            )
            .arg(Arg::with_name("noupdate")
                .short("n")
                .long("noupdate")
                .help("don't update the local cache")
            )
        )

        // update
        .subcommand(SubCommand::with_name("update")
            .about("Updates the local RPKI repository.")
        )

        // rtrd
        .subcommand(Config::rtrd_args(SubCommand::with_name("rtrd")
            .about("Starts the RTR server.")
            .arg(Arg::with_name("attached")
                .short("a")
                .long("attached")
                .help("stay attached to the terminal")
            )
        ))

        // man
        .subcommand(SubCommand::with_name("man")
            .about("Shows the man page")
            .arg(Arg::with_name("output")
                .short("o")
                .long("output")
                .value_name("FILE")
                .help("output file, '-' or not present for stdout")
                .takes_value(true)
            )
        )
    }
/// Adds the command configuration to a clap app.
Adds the command configuration to a clap app.
Adds the command configuration to a clap app .
pub fn config_args<'a: 'b, 'b>(app: App<'a, 'b>) -> App<'a, 'b> {
        app
        // config
        .subcommand(Config::rtrd_args(SubCommand::with_name("config")
            .about("Prints the current config and exits.")
        ))
        // vrps
        .subcommand(SubCommand::with_name("vrps")
            .about("Produces a list of validated ROA payload.")
            .arg(Arg::with_name("output")
                .short("o")
                .long("output")
                .value_name("FILE")
                .help("output file")
                .takes_value(true)
                .default_value("-")
            )
            .arg(Arg::with_name("format")
                .short("f")
                .long("format")
                .value_name("FORMAT")
                .possible_values(&[
                    "csv", "csvext", "json", "openbgpd", "rpsl", "none"
                ])
                .default_value("csv")
                .help("sets the output format")
                .takes_value(true)
            )
            .arg(Arg::with_name("noupdate")
                .short("n")
                .long("noupdate")
                .help("don't update the local cache")
            )
        )
        // update
        .subcommand(SubCommand::with_name("update")
            .about("Updates the local RPKI repository.")
        )
        // rtrd
        .subcommand(Config::rtrd_args(SubCommand::with_name("rtrd")
            .about("Starts the RTR server.")
            .arg(Arg::with_name("attached")
                .short("a")
                .long("attached")
                .help("stay attached to the terminal")
            )
        ))
        // man
        .subcommand(SubCommand::with_name("man")
            .about("Shows the man page")
            .arg(Arg::with_name("output")
                .short("o")
                .long("output")
                .value_name("FILE")
                .help("output file, '-' or not present for stdout")
                .takes_value(true)
            )
        )
    }
pub fn config_args < ' a : ' b , ' b > ( app : App < ' a , ' b > ) -> App < ' a , ' b > { app // config . subcommand ( Config :: rtrd_args ( SubCommand :: with_name ( " " ) . about ( " " ) ) ) // vrps . subcommand ( SubCommand :: with_name ( " " ) . about ( " " ) . arg ( Arg :: with_name ( " " ) . short ( " " ) . long ( " " ) . value_name ( " " ) . help ( " " ) . takes_value ( true ) . default_value ( " " ) ) . arg ( Arg :: with_name ( " " ) . short ( " " ) . long ( " " ) . value_name ( " " ) . possible_values ( & [ " " , " " , " " , " " , " " , " " ] ) . default_value ( " " ) . help ( " " ) . takes_value ( true ) ) . arg ( Arg :: with_name ( " " ) . short ( " " ) . long ( " " ) . help ( " " ) ) ) // update . subcommand ( SubCommand :: with_name ( " " ) . about ( " " ) ) // rtrd . subcommand ( Config :: rtrd_args ( SubCommand :: with_name ( " " ) . about ( " " ) . arg ( Arg :: with_name ( " " ) . short ( " " ) . long ( " " ) . help ( " " ) ) ) ) // man . subcommand ( SubCommand :: with_name ( " " ) . about ( " " ) . arg ( Arg :: with_name ( " " ) . short ( " " ) . long ( " " ) . value_name ( " " ) . help ( " " ) . takes_value ( true ) ) ) }
Adds the command configuration to a clap app.
Adds the command configuration to a clap app .
app
App<'a, 'b>
app
App<'a, 'b>