mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 22:02:35 +00:00
Rebuilt docs after doct test corrections
This commit is contained in:
parent
eabfa091bc
commit
418ead0b00
5 changed files with 4 additions and 7 deletions
|
@ -55,8 +55,8 @@ i.e. only when it's been determined that the user wants or needs to see the
|
|||
<p>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.</p>
|
||||
|
||||
<h1 id="example" class='section-header'><a
|
||||
href="#example">Example</a></h1><pre id='rust-example-rendered' class='rust '>
|
||||
<p>Example:</p>
|
||||
<pre id='rust-example-rendered' class='rust '>
|
||||
<span class='kw'>use</span> <span class='ident'>clap</span>::{<span class='ident'>Arg</span>, <span class='ident'>App</span>, <span class='ident'>SubCommand</span>};
|
||||
|
||||
<span class='comment'>// ...</span>
|
||||
|
|
|
@ -148,7 +148,6 @@ own auto generated help and version switches.</p>
|
|||
.<span class='ident'>index</span>(<span class='number'>1</span>)
|
||||
.<span class='ident'>help</span>(<span class='string'>"Configuration file to use"</span>)))
|
||||
<span class='comment'>// Additional subcommand configuration goes here, such as arguments...</span>
|
||||
)
|
||||
</pre>
|
||||
</div><h4 id='method.subcommands' class='method'><a class='stability Unmarked' title='No stability level'></a><code>fn <a href='#method.subcommands' class='fnname'>subcommands</a>(self, subcmds: <a class='struct' href='http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html' title='collections::vec::Vec'>Vec</a><<a class='struct' href='../clap/struct.App.html' title='clap::App'>App</a>>) -> <a class='struct' href='../clap/struct.App.html' title='clap::App'>App</a></code></h4>
|
||||
<div class='docblock'><p>Adds multiple subcommands to the list of valid possibilties</p>
|
||||
|
|
|
@ -905,7 +905,6 @@
|
|||
<span id="863">863</span>
|
||||
<span id="864">864</span>
|
||||
<span id="865">865</span>
|
||||
<span id="866">866</span>
|
||||
</pre><pre class='rust '>
|
||||
<span class='kw'>extern</span> <span class='kw'>crate</span> <span class='ident'>libc</span>;
|
||||
|
||||
|
@ -1207,7 +1206,6 @@
|
|||
<span class='doccomment'>/// .index(1)</span>
|
||||
<span class='doccomment'>/// .help("Configuration file to use")))</span>
|
||||
<span class='doccomment'>/// // Additional subcommand configuration goes here, such as arguments...</span>
|
||||
<span class='doccomment'>/// )</span>
|
||||
<span class='doccomment'>/// # .get_matches();</span>
|
||||
<span class='doccomment'>/// ```</span>
|
||||
<span class='kw'>pub</span> <span class='kw'>fn</span> <span class='ident'>subcommand</span>(<span class='kw-2'>mut</span> <span class='self'>self</span>, <span class='ident'>subcmd</span>: <span class='ident'>App</span>) <span class='op'>-></span> <span class='ident'>App</span> {
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
<span class='doccomment'>//! 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</span>
|
||||
<span class='doccomment'>//! determine the functioning of your program.</span>
|
||||
<span class='doccomment'>//!</span>
|
||||
<span class='doccomment'>//! # Example</span>
|
||||
<span class='doccomment'>//! Example:</span>
|
||||
<span class='doccomment'>//! </span>
|
||||
<span class='doccomment'>//! ```no_run</span>
|
||||
<span class='doccomment'>//! use clap::{Arg, App, SubCommand};</span>
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
<span class='doccomment'>/// ```no_run</span>
|
||||
<span class='doccomment'>/// # use clap::{App, Arg, SubCommand};</span>
|
||||
<span class='doccomment'>/// # let matches = App::new("myprog")</span>
|
||||
<span class='doccomment'>/// # .subcommand(</span>
|
||||
<span class='doccomment'>/// # .subcommand(</span>
|
||||
<span class='doccomment'>/// SubCommand::new("conifg")</span>
|
||||
<span class='doccomment'>/// .about("Used for configuration")</span>
|
||||
<span class='doccomment'>/// .arg(Arg::new("config_file")</span>
|
||||
|
|
Loading…
Reference in a new issue