From 418ead0b00fb85309246ebd611019892812e3210 Mon Sep 17 00:00:00 2001
From: Kevin K After defining a list of possible valid arguments you get a list of matches that the user supplied at runtime. You can then use this list to
determine the functioning of your program. Example:Example
+
use clap::{Arg, App, SubCommand};
// ...
diff --git a/docs/clap/struct.App.html b/docs/clap/struct.App.html
index 19958b2c..fc58a333 100644
--- a/docs/clap/struct.App.html
+++ b/docs/clap/struct.App.html
@@ -148,7 +148,6 @@ own auto generated help and version switches.
fn subcommands(self, subcmds: Vec<App>) -> App
Adds multiple subcommands to the list of valid possibilties
diff --git a/docs/src/clap/app.rs/app.rs.html b/docs/src/clap/app.rs/app.rs.html index 7c3267f9..683423ef 100644 --- a/docs/src/clap/app.rs/app.rs.html +++ b/docs/src/clap/app.rs/app.rs.html @@ -905,7 +905,6 @@ 863 864 865 -866extern crate libc; @@ -1207,7 +1206,6 @@ /// .index(1) /// .help("Configuration file to use"))) /// // Additional subcommand configuration goes here, such as arguments... - /// ) /// # .get_matches(); /// ``` pub fn subcommand(mut self, subcmd: App) -> App { diff --git a/docs/src/clap/lib.rs/lib.rs.html b/docs/src/clap/lib.rs/lib.rs.html index 9e1963a6..4d6de5ed 100644 --- a/docs/src/clap/lib.rs/lib.rs.html +++ b/docs/src/clap/lib.rs/lib.rs.html @@ -212,7 +212,7 @@ //! After defining a list of possible valid arguments you get a list of matches that the user supplied at runtime. You can then use this list to //! determine the functioning of your program. //! -//! # Example +//! Example: //! //! ```no_run //! use clap::{Arg, App, SubCommand}; diff --git a/docs/src/clap/subcommand.rs/subcommand.rs.html b/docs/src/clap/subcommand.rs/subcommand.rs.html index 24316236..ff8fceb1 100644 --- a/docs/src/clap/subcommand.rs/subcommand.rs.html +++ b/docs/src/clap/subcommand.rs/subcommand.rs.html @@ -99,7 +99,7 @@ /// ```no_run /// # use clap::{App, Arg, SubCommand}; /// # let matches = App::new("myprog") -/// # .subcommand( +/// # .subcommand( /// SubCommand::new("conifg") /// .about("Used for configuration") /// .arg(Arg::new("config_file")