<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="Build a command-line interface."><title>Command in clap - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><linkrel="stylesheet"href="../static.files/normalize-76eba96aa4d2e634.css"><linkrel="stylesheet"href="../static.files/rustdoc-ac92e1bbe349e143.css"><metaname="rustdoc-vars"data-root-path="../"data-static-root-path="../static.files/"data-current-crate="clap"data-themes=""data-resource-suffix=""data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)"data-channel="1.76.0"data-search-js="search-2b6ce74ff89ae146.js"data-settings-js="settings-4313503d2e1961c2.js"><scriptsrc="../static.files/storage-f2adc0d6ca4d09fb.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../static.files/main-305769736d49e732.js"></script><noscript><linkrel="stylesheet"href="../static.files/noscript-feafe1bb7466e4bd.css"></noscript><linkrel="alternate icon"type="image/png"href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><linkrel="alternate icon"type="image/png"href="../static.files/favicon-32x32-422f7d1d52889060.png"><linkrel="icon"type="image/svg+xml"href="../static.files/favicon-2c020d218678b618.svg"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="logo-container"href="../clap/index.html"><imgsrc="https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png"alt=""></a></nav><navclass="sidebar"><divclass="sidebar-crate"><aclass="logo-container"href="../clap/index.html"><imgsrc="https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png"alt="logo"></a><h2><ahref="../clap/index.html">clap</a><spanclass="version">4.5.1</span></h2></div><h2class="location"><ahref="#">Command</a></h2><divclass="sidebar-elems"><section><h3><ahref="#implementations">Methods</a></h3><ulclass="block method"><li><ahref="#method.about">about</a></li><li><ahref="#method.after_help">after_help</a></li><li><ahref="#method.after_long_help">after_long_help</a></li><li><ahref="#method.alias">alias</a></li><li><ahref="#method.aliases">aliases</a></li><li><ahref="#method.allow_external_subcommands">allow_external_subcommands</a></li><li><ahref="#method.allow_missing_positional">allow_missing_positional</a></li><li><ahref="#method.arg">arg</a></li><li><ahref="#method.arg_required_else_help">arg_required_else_help</a></li><li><ahref="#method.args">args</a></li><li><ahref="#method.args_conflicts_with_subcommands">args_conflicts_with_subcommands</a></li><li><ahref="#method.args_override_self">args_override_self</a></li><li><ahref="#method.author">author</a></li><li><ahref="#method.before_help">before_help</a></li><li><ahref="#method.before_long_help">before_long_help</a></li><li><ahref="#method.bin_name">bin_name</a></li><li><ahref="#method.build">build</a></li><li><ahref="#method.color">color</a></li><li><ahref="#method.debug_assert">debug_assert</a></li><li><ahref="#method.defer">defer</a></li><li><ahref="#method.disable_colored_help">disable_colored_help</a></li><li><ahref="#method.disable_help_flag">disable_help_flag</a></li><li><ahref="#method.disable_help_subcomman
<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../clap/all.html"title="show sidebar"></a></div><inputclass="search-input"name="search"aria-label="Run search in the documentation"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"tabindex="-1"><ahref="../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Struct <ahref="index.html">clap</a>::<wbr><aclass="struct"href="#">Command</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../src/clap_builder/builder/command.rs.html#73">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub struct Command { <spanclass="comment">/* private fields */</span> }</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Build a command-line interface.</p>
<p>This includes defining arguments, subcommands, parser behavior, and help output.
Once all configuration is complete,
the <ahref="struct.Command.html#method.get_matches"title="method clap::Command::get_matches"><code>Command::get_matches</code></a> family of methods starts the runtime-parsing
process. These methods then return information about the user supplied
arguments (or lack thereof).</p>
<p>When deriving a <ahref="trait.Parser.html"title="trait clap::Parser"><code>Parser</code></a>, you can use
<ahref="trait.CommandFactory.html#tymethod.command"title="associated function clap::CommandFactory::command"><code>CommandFactory::command</code></a> to access the
.about(<spanclass="string">"Explains in brief what the program does"</span>)
.arg(
Arg::new(<spanclass="string">"in_file"</span>)
)
.after_help(<spanclass="string">"Longer explanation to appear after the options when \
displaying the help information from --help or -h"</span>)
.get_matches();
<spanclass="comment">// Your program logic starts here...</span></code></pre></div>
</div></details><h2id="implementations"class="section-header">Implementations<ahref="#implementations"class="anchor">§</a></h2><divid="implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Command"class="impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#113">source</a><ahref="#impl-Command"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h3></section></summary><divclass="docblock"><h4id="basic-api"><ahref="#basic-api">Basic API</a></h4></div><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.new"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#130">source</a><h4class="code-header">pub fn <ahref="#method.new"class="fn">new</a>(name: impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Creates a new instance of an <code>Command</code>.</p>
<p>It is common, but not required, to use binary name as the <code>name</code>. This
name will only be displayed to the user when they request to print
version or help and usage information.</p>
<p>See also <ahref="macro.command.html"title="macro clap::command"><code>command!</code></a> and <ahref="crate::crate_name!"><code>crate_name!</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.arg"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#168">source</a><h4class="code-header">pub fn <ahref="#method.arg"class="fn">arg</a>(self, a: impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Adds an <ahref="struct.Arg.html"title="struct clap::Arg">argument</a> to the list of valid possibilities.</p>
F: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>) -><aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>,</div></h4></section></summary><divclass="docblock"><p>Allows one to mutate an <ahref="struct.Arg.html"title="struct clap::Arg"><code>Arg</code></a> after it’s been added to a <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a>.</p>
F: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>) -><aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>,</div></h4></section></summary><divclass="docblock"><p>Allows one to mutate all <ahref="struct.Arg.html"title="struct clap::Arg"><code>Arg</code></a>s after they’ve been added to a <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a>.</p>
<p>This does not affect the built-in <code>--help</code> or <code>--version</code> arguments.</p>
F: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="struct"href="struct.ArgGroup.html"title="struct clap::ArgGroup">ArgGroup</a>) -><aclass="struct"href="struct.ArgGroup.html"title="struct clap::ArgGroup">ArgGroup</a>,</div></h4></section></summary><divclass="docblock"><p>Allows one to mutate an <ahref="struct.ArgGroup.html"title="struct clap::ArgGroup"><code>ArgGroup</code></a> after it’s been added to a <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a>.</p>
.arg(<spanclass="macro">arg!</span>(--<spanclass="string">"set-ver" </span><ver><spanclass="string">"set the version manually"</span>).required(<spanclass="bool-val">false</span>))
F: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(<aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>,</div></h4></section></summary><divclass="docblock"><p>Allows one to mutate a <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a> after it’s been added as a subcommand.</p>
<p>This can be useful for modifying auto-generated arguments of nested subcommands with
<p>The following example demonstrates using an <ahref="struct.ArgGroup.html"title="struct clap::ArgGroup"><code>ArgGroup</code></a> to ensure that one, and only one,
of the arguments from the specified group is present at runtime.</p>
.arg(<spanclass="macro">arg!</span>(--<spanclass="string">"set-ver" </span><ver><spanclass="string">"set the version manually"</span>).required(<spanclass="bool-val">false</span>))
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Adds multiple <ahref="struct.ArgGroup.html"title="struct clap::ArgGroup"><code>ArgGroup</code></a>s to the <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a> at once.</p>
.arg(<spanclass="macro">arg!</span>(--<spanclass="string">"set-ver" </span><ver><spanclass="string">"set the version manually"</span>).required(<spanclass="bool-val">false</span>))
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.subcommand"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#479">source</a><h4class="code-header">pub fn <ahref="#method.subcommand"class="fn">subcommand</a>(self, subcmd: impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Adds a subcommand to the list of valid possibilities.</p>
<p>Subcommands are effectively sub-<ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a>s, because they can contain their own arguments,
subcommands, version, usage, etc. They also function just like <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a>s, in that they get
their own auto generated help, version, and usage.</p>
<p>A subcommand’s <ahref="struct.Command.html#method.name"title="method clap::Command::name"><code>Command::name</code></a> will be used for:</p>
<ul>
<li>The argument the user passes in</li>
<li>Programmatically looking up the subcommand</li>
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Adds multiple subcommands to the list of valid possibilities.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.defer"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#536">source</a><h4class="code-header">pub fn <ahref="#method.defer"class="fn">defer</a>(self, deferred: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.fn.html">fn</a>(_: <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Delay initialization for parts of the <code>Command</code></p>
<p>This is useful for large applications to delay definitions of subcommands until they are
cmd.arg(<spanclass="macro">arg!</span>(<config><spanclass="string">"Required configuration file to use"</span>))
})
)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.debug_assert"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#573">source</a><h4class="code-header">pub fn <ahref="#method.debug_assert"class="fn">debug_assert</a>(self)</h4></section></summary><divclass="docblock"><p>Catch problems earlier in the development cycle.</p>
<p>Most error states are handled as asserts under the assumption they are programming mistake
and not something to handle at runtime. Rather than relying on tests (manual or automated)
that exhaustively test your CLI to ensure the asserts are evaluated, this will run those
asserts in a way convenient for running as a test.</p>
<p><strong>Note::</strong> This will not help with asserts in <ahref="struct.ArgMatches.html"title="struct clap::ArgMatches"><code>ArgMatches</code></a>, those will need exhaustive
<p>Like <ahref="struct.Command.html#method.get_matches"title="method clap::Command::get_matches"><code>Command::get_matches</code></a> but doesn’t consume the <code>Command</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_get_matches"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#668">source</a><h4class="code-header">pub fn <ahref="#method.try_get_matches"class="fn">try_get_matches</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="struct.ArgMatches.html"title="struct clap::ArgMatches">ArgMatches</a>, <aclass="struct"href="error/struct.Error.html"title="struct clap::error::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Parse <ahref="https://doc.rust-lang.org/1.76.0/std/env/fn.args_os.html"title="fn std::env::args_os"><code>env::args_os</code></a>, returning a <ahref="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result"><code>clap::Result</code></a> on failure.</p>
<p><strong>NOTE:</strong> This method WILL NOT exit when <code>--help</code> or <code>--version</code> (or short versions) are
used. It will return a <ahref="type.Error.html"title="type clap::Error"><code>clap::Error</code></a>, where the <ahref="type.Error.html"title="type clap::Error"><code>kind</code></a> is a
<ahref="error/enum.ErrorKind.html#variant.DisplayHelp"title="variant clap::error::ErrorKind::DisplayHelp"><code>ErrorKind::DisplayHelp</code></a> or <ahref="error/enum.ErrorKind.html#variant.DisplayVersion"title="variant clap::error::ErrorKind::DisplayVersion"><code>ErrorKind::DisplayVersion</code></a> respectively. You must call
<ahref="error/struct.Error.html#method.exit"title="method clap::error::Error::exit"><code>Error::exit</code></a> or perform a <ahref="https://doc.rust-lang.org/1.76.0/std/process/fn.exit.html"title="fn std::process::exit"><code>std::process::exit</code></a>.</p>
T: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://doc.rust-lang.org/1.76.0/std/ffi/os_str/struct.OsString.html"title="struct std::ffi::os_str::OsString">OsString</a>> + <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><divclass="docblock"><p>Parse the specified arguments, returning a <ahref="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result"><code>clap::Result</code></a> on failure.</p>
<p><strong>NOTE:</strong> This method WILL NOT exit when <code>--help</code> or <code>--version</code> (or short versions) are
used. It will return a <ahref="type.Error.html"title="type clap::Error"><code>clap::Error</code></a>, where the <ahref="type.Error.html"title="type clap::Error"><code>kind</code></a> is a <ahref="error/enum.ErrorKind.html#variant.DisplayHelp"title="variant clap::error::ErrorKind::DisplayHelp"><code>ErrorKind::DisplayHelp</code></a>
or <ahref="error/enum.ErrorKind.html#variant.DisplayVersion"title="variant clap::error::ErrorKind::DisplayVersion"><code>ErrorKind::DisplayVersion</code></a> respectively. You must call <ahref="error/struct.Error.html#method.exit"title="method clap::error::Error::exit"><code>Error::exit</code></a> or
perform a <ahref="https://doc.rust-lang.org/1.76.0/std/process/fn.exit.html"title="fn std::process::exit"><code>std::process::exit</code></a> yourself.</p>
<p><strong>NOTE:</strong> The first argument will be parsed as the binary name unless
<ahref="struct.Command.html#method.no_binary_name"title="method clap::Command::no_binary_name"><code>Command::no_binary_name</code></a> is used.</p>
T: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://doc.rust-lang.org/1.76.0/std/ffi/os_str/struct.OsString.html"title="struct std::ffi::os_str::OsString">OsString</a>> + <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><divclass="docblock"><p>Parse the specified arguments, returning a <ahref="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result"><code>clap::Result</code></a> on failure.</p>
<p>Like <ahref="struct.Command.html#method.try_get_matches_from"title="method clap::Command::try_get_matches_from"><code>Command::try_get_matches_from</code></a> but doesn’t consume the <code>Command</code>.</p>
<p><strong>NOTE:</strong> This method WILL NOT exit when <code>--help</code> or <code>--version</code> (or short versions) are
used. It will return a <ahref="type.Error.html"title="type clap::Error"><code>clap::Error</code></a>, where the <ahref="type.Error.html"title="type clap::Error"><code>kind</code></a> is a <ahref="error/enum.ErrorKind.html#variant.DisplayHelp"title="variant clap::error::ErrorKind::DisplayHelp"><code>ErrorKind::DisplayHelp</code></a>
or <ahref="error/enum.ErrorKind.html#variant.DisplayVersion"title="variant clap::error::ErrorKind::DisplayVersion"><code>ErrorKind::DisplayVersion</code></a> respectively. You must call <ahref="error/struct.Error.html#method.exit"title="method clap::error::Error::exit"><code>Error::exit</code></a> or
perform a <ahref="https://doc.rust-lang.org/1.76.0/std/process/fn.exit.html"title="fn std::process::exit"><code>std::process::exit</code></a> yourself.</p>
<p><strong>NOTE:</strong> The first argument will be parsed as the binary name unless
<ahref="struct.Command.html#method.no_binary_name"title="method clap::Command::no_binary_name"><code>Command::no_binary_name</code></a> is used.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.print_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#846">source</a><h4class="code-header">pub fn <ahref="#method.print_help"class="fn">print_help</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/1.76.0/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Prints the short help message (<code>-h</code>) to <ahref="https://doc.rust-lang.org/1.76.0/std/io/stdio/fn.stdout.html"title="fn std::io::stdio::stdout"><code>io::stdout()</code></a>.</p>
<p>See also <ahref="struct.Command.html#method.print_long_help"title="method clap::Command::print_long_help"><code>Command::print_long_help</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.print_long_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#874">source</a><h4class="code-header">pub fn <ahref="#method.print_long_help"class="fn">print_long_help</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/1.76.0/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></h4></section></summary><divclass="docblock"><p>Prints the long help message (<code>--help</code>) to <ahref="https://doc.rust-lang.org/1.76.0/std/io/stdio/fn.stdout.html"title="fn std::io::stdio::stdout"><code>io::stdout()</code></a>.</p>
<p>See also <ahref="struct.Command.html#method.print_help"title="method clap::Command::print_help"><code>Command::print_help</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.render_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#904">source</a><h4class="code-header">pub fn <ahref="#method.render_help"class="fn">render_help</a>(&mut self) -><aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a></h4></section></summary><divclass="docblock"><p>Render the short help message (<code>-h</code>) to a <ahref="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr"><code>StyledStr</code></a></p>
<p>See also <ahref="struct.Command.html#method.render_long_help"title="method clap::Command::render_long_help"><code>Command::render_long_help</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.render_long_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#931">source</a><h4class="code-header">pub fn <ahref="#method.render_long_help"class="fn">render_long_help</a>(&mut self) -><aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a></h4></section></summary><divclass="docblock"><p>Render the long help message (<code>--help</code>) to a <ahref="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr"><code>StyledStr</code></a>.</p>
<p>See also <ahref="struct.Command.html#method.render_help"title="method clap::Command::render_help"><code>Command::render_help</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.render_version"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#991">source</a><h4class="code-header">pub fn <ahref="#method.render_version"class="fn">render_version</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass="docblock"><p>Version message rendered as if the user ran <code>-V</code>.</p>
<p>See also <ahref="struct.Command.html#method.render_long_version"title="method clap::Command::render_long_version"><code>Command::render_long_version</code></a>.</p>
<p>This function does not try to color the message nor it inserts any <ahref="https://en.wikipedia.org/wiki/ANSI_escape_code">ANSI escape codes</a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.render_long_version"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1016">source</a><h4class="code-header">pub fn <ahref="#method.render_long_version"class="fn">render_long_version</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass="docblock"><p>Version message rendered as if the user ran <code>--version</code>.</p>
<p>See also <ahref="struct.Command.html#method.render_version"title="method clap::Command::render_version"><code>Command::render_version</code></a>.</p>
<p>This function does not try to color the message nor it inserts any <ahref="https://en.wikipedia.org/wiki/ANSI_escape_code">ANSI escape codes</a>.</p>
<p>These settings will apply to the top-level command and all subcommands, by default. Some
settings can be overridden in subcommands.</p>
</div><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.no_binary_name"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1069">source</a><h4class="code-header">pub fn <ahref="#method.no_binary_name"class="fn">no_binary_name</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Specifies that the parser should not assume the first argument passed is the binary name.</p>
<p>This is normally the case when using a “daemon” style mode. For shells / REPLs, see
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.ignore_errors"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1101">source</a><h4class="code-header">pub fn <ahref="#method.ignore_errors"class="fn">ignore_errors</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Try not to fail on parse errors, like missing option values.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.args_override_self"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1121">source</a><h4class="code-header">pub fn <ahref="#method.args_override_self"class="fn">args_override_self</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Replace prior occurrences of arguments rather than error</p>
<p>For any argument that would conflict with itself by default (e.g.
<ahref="enum.ArgAction.html#variant.Set"title="variant clap::ArgAction::Set"><code>ArgAction::Set</code></a>, it will now override itself.</p>
<p>This is the equivalent to saying the <code>foo</code> arg using <ahref="struct.Arg.html#method.overrides_with"title="method clap::Arg::overrides_with"><code>Arg::overrides_with("foo")</code></a> for all
defined arguments.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.dont_delimit_trailing_values"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1150">source</a><h4class="code-header">pub fn <ahref="#method.dont_delimit_trailing_values"class="fn">dont_delimit_trailing_values</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Disables the automatic delimiting of values after <code>--</code> or when <ahref="struct.Command.html#method.trailing_var_arg"title="method clap::Command::trailing_var_arg"><code>Command::trailing_var_arg</code></a>
was used.</p>
<p><strong>NOTE:</strong> The same thing can be done manually by setting the final positional argument to
<ahref="struct.Arg.html#method.value_delimiter"title="method clap::Arg::value_delimiter"><code>Arg::value_delimiter(None)</code></a>. Using this setting is safer, because it’s easier to locate
when making changes.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.color"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1177">source</a><h4class="code-header">pub fn <ahref="#method.color"class="fn">color</a>(self, color: <aclass="enum"href="enum.ColorChoice.html"title="enum clap::ColorChoice">ColorChoice</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets when to color output.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
<p><strong>NOTE:</strong> Default behaviour is <ahref="enum.ColorChoice.html#variant.Auto"title="variant clap::ColorChoice::Auto"><code>ColorChoice::Auto</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.styles"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1212">source</a><h4class="code-header">pub fn <ahref="#method.styles"class="fn">styles</a>(self, styles: <aclass="struct"href="builder/struct.Styles.html"title="struct clap::builder::Styles">Styles</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the <ahref="builder/struct.Styles.html"title="struct clap::builder::Styles"><code>Styles</code></a> for terminal output</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
<p><strong>NOTE:</strong> Default behaviour is <ahref="builder/struct.Styles.html#method.default"title="associated function clap::builder::Styles::default"><code>Styles::default</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.term_width"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1243">source</a><h4class="code-header">pub fn <ahref="#method.term_width"class="fn">term_width</a>(self, width: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the terminal width at which to wrap help messages.</p>
<p>Using <code>0</code> will ignore terminal widths and use source formatting.</p>
<p>Defaults to current terminal width when <code>wrap_help</code> feature flag is enabled. If current
width cannot be determined, the default is 100.</p>
<p><strong><code>unstable-v5</code> feature</strong>: Defaults to unbound, being subject to
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.max_term_width"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1273">source</a><h4class="code-header">pub fn <ahref="#method.max_term_width"class="fn">max_term_width</a>(self, width: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Limit the line length for wrapping help when using the current terminal’s width.</p>
<p>This only applies when <ahref="struct.Command.html#method.term_width"title="method clap::Command::term_width"><code>term_width</code></a> is unset so that the current
terminal’s width will be used. See <ahref="struct.Command.html#method.term_width"title="method clap::Command::term_width"><code>Command::term_width</code></a> for more details.</p>
<p>Using <code>0</code> will ignore this, always respecting <ahref="struct.Command.html#method.term_width"title="method clap::Command::term_width"><code>Command::term_width</code></a> (default).</p>
<p><strong><code>unstable-v5</code> feature</strong>: Defaults to 100.</p>
<p><strong>NOTE:</strong> This setting applies globally and <em>not</em> on a per-command basis.</p>
<p><strong>NOTE:</strong> This requires the <code>wrap_help</code> feature</p>
<p>You can create a custom version flag with <ahref="enum.ArgAction.html#variant.Version"title="variant clap::ArgAction::Version"><code>ArgAction::Version</code></a></p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.propagate_version"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1353">source</a><h4class="code-header">pub fn <ahref="#method.propagate_version"class="fn">propagate_version</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Specifies to use the version of the current command for all <ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand"><code>subcommands</code></a>.</p>
<p>Defaults to <code>false</code>; subcommands have independent version strings from their parents.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
<spanclass="comment">// running `$ myprog test --version` will display
// "myprog-test v1.1"</span></code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.next_line_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1375">source</a><h4class="code-header">pub fn <ahref="#method.next_line_help"class="fn">next_line_help</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Places the help string for all arguments and subcommands on the line after them.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
<p>You can create a custom help flag with <ahref="enum.ArgAction.html#variant.Help"title="variant clap::ArgAction::Help"><code>ArgAction::Help</code></a>, <ahref="enum.ArgAction.html#variant.HelpShort"title="variant clap::ArgAction::HelpShort"><code>ArgAction::HelpShort</code></a>, or
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.help_expected"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1529">source</a><h4class="code-header">pub fn <ahref="#method.help_expected"class="fn">help_expected</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Panic if help descriptions are omitted.</p>
<p><strong>NOTE:</strong> When deriving <ahref="trait.Parser.html"title="trait clap::Parser"><code>Parser</code></a>, you could instead check this at
compile-time with <code>#![deny(missing_docs)]</code></p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
<spanclass="comment">// Someone forgot to put .about("...") here
// Since the setting `help_expected` is activated, this will lead to
// a panic (if you are in debug mode)
</span>)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.hide_possible_values"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1555">source</a><h4class="code-header">pub fn <ahref="#method.hide_possible_values"class="fn">hide_possible_values</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Tells <code>clap</code><em>not</em> to print possible values when displaying help information.</p>
<p>This can be useful if there are many values, or they are explained elsewhere.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.infer_long_args"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1576">source</a><h4class="code-header">pub fn <ahref="#method.infer_long_args"class="fn">infer_long_args</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Allow partial matches of long arguments or their <ahref="struct.Command.html#method.aliases"title="method clap::Command::aliases">aliases</a>.</p>
<p>For example, to match an argument named <code>--test</code>, one could use <code>--t</code>, <code>--te</code>, <code>--tes</code>, and
<code>--test</code>.</p>
<p><strong>NOTE:</strong> The match <em>must not</em> be ambiguous at all in order to succeed. i.e. to match
<code>--te</code> to <code>--test</code> there could not also be another argument or alias <code>--temp</code> because both
start with <code>--te</code></p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.infer_subcommands"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1618">source</a><h4class="code-header">pub fn <ahref="#method.infer_subcommands"class="fn">infer_subcommands</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Allow partial matches of <ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand">subcommand</a> names and their <ahref="struct.Command.html#method.aliases"title="method clap::Command::aliases">aliases</a>.</p>
<p>For example, to match a subcommand named <code>test</code>, one could use <code>t</code>, <code>te</code>, <code>tes</code>, and
<code>test</code>.</p>
<p><strong>NOTE:</strong> The match <em>must not</em> be ambiguous at all in order to succeed. i.e. to match <code>te</code>
to <code>test</code> there could not also be a subcommand or alias <code>temp</code> because both start with <code>te</code></p>
<p><strong>CAUTION:</strong> This setting can interfere with <ahref="struct.Arg.html#method.index"title="method clap::Arg::index">positional/free arguments</a>, take care when
designing CLIs which allow inferred subcommands and have potential positional/free
arguments whose values could start with the same characters as subcommands. If this is the
case, it’s recommended to use settings such as <ahref="struct.Command.html#method.args_conflicts_with_subcommands"title="method clap::Command::args_conflicts_with_subcommands"><code>Command::args_conflicts_with_subcommands</code></a> in
conjunction with this setting.</p>
<p><strong>NOTE:</strong> This choice is propagated to all child subcommands.</p>
<divclass="example-wrap ignore"><ahref="#"class="tooltip"title="This example is not tested">ⓘ</a><preclass="rust rust-example-rendered"><code><spanclass="kw">let </span>cmd = <spanclass="macro">clap::command!</span>()
.name(<spanclass="string">"foo"</span>);
<spanclass="comment">// continued logic goes here, such as `cmd.get_matches()` etc.</span></code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.bin_name"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1671">source</a><h4class="code-header">pub fn <ahref="#method.bin_name"class="fn">bin_name</a>(self, name: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Overrides the runtime-determined name of the binary for help and error messages.</p>
<p>This should only be used when absolutely necessary, such as when the binary name for your
application is misleading, or perhaps <em>not</em> how the user should invoke your program.</p>
<p><strong>Pro-tip:</strong> When building things such as third party <code>cargo</code>
subcommands, this setting <strong>should</strong> be used!</p>
<p><strong>NOTE:</strong> This <em>does not</em> change or set the name of the binary file on
disk. It only changes what clap thinks the name is for the purposes of
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.display_name"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1688">source</a><h4class="code-header">pub fn <ahref="#method.display_name"class="fn">display_name</a>(self, name: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Overrides the runtime-determined display name of the program for help and error messages.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.author"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1712">source</a><h4class="code-header">pub fn <ahref="#method.author"class="fn">author</a>(self, author: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the author(s) for the help message.</p>
<p><strong>Pro-tip:</strong> Use <code>clap</code>s convenience macro [<code>crate_authors!</code>] to
automatically set your application’s author(s) to the same thing as your
crate at compile time.</p>
<p><strong>NOTE:</strong> A custom <ahref="struct.Command.html#method.help_template"title="method clap::Command::help_template"><code>help_template</code></a> is needed for author to show
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.about"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1736">source</a><h4class="code-header">pub fn <ahref="#method.about"class="fn">about</a>(self, about: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the program’s description for the short help (<code>-h</code>).</p>
<p>If <ahref="struct.Command.html#method.long_about"title="method clap::Command::long_about"><code>Command::long_about</code></a> is not specified, this message will be displayed for <code>--help</code>.</p>
<p><strong>NOTE:</strong> Only <code>Command::about</code> (short format) is used in completion
script generation in order to be concise.</p>
<p>See also <ahref="crate::crate_description!"><code>crate_description!</code></a>.</p>
.about(<spanclass="string">"Does really amazing things for great people"</span>)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.long_about"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1762">source</a><h4class="code-header">pub fn <ahref="#method.long_about"class="fn">long_about</a>(self, long_about: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the program’s description for the long help (<code>--help</code>).</p>
<p>If <ahref="struct.Command.html#method.about"title="method clap::Command::about"><code>Command::about</code></a> is not specified, this message will be displayed for <code>-h</code>.</p>
<p><strong>NOTE:</strong> Only <ahref="struct.Command.html#method.about"title="method clap::Command::about"><code>Command::about</code></a> (short format) is used in completion
<spanclass="string">"Does really amazing things to great people. Now let's talk a little
more in depth about how this subcommand really works. It may take about
a few lines of text, but that's ok!"</span>)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.after_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1785">source</a><h4class="code-header">pub fn <ahref="#method.after_help"class="fn">after_help</a>(self, help: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Free-form help text for after auto-generated short help (<code>-h</code>).</p>
<p>This is often used to describe how to use the arguments, caveats to be noted, or license
and contact information.</p>
<p>If <ahref="struct.Command.html#method.after_long_help"title="method clap::Command::after_long_help"><code>Command::after_long_help</code></a> is not specified, this message will be displayed for <code>--help</code>.</p>
.after_help(<spanclass="string">"Does really amazing things for great people... but be careful with -R!"</span>)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.after_long_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1808">source</a><h4class="code-header">pub fn <ahref="#method.after_long_help"class="fn">after_long_help</a>(self, help: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Free-form help text for after auto-generated long help (<code>--help</code>).</p>
<p>This is often used to describe how to use the arguments, caveats to be noted, or license
and contact information.</p>
<p>If <ahref="struct.Command.html#method.after_help"title="method clap::Command::after_help"><code>Command::after_help</code></a> is not specified, this message will be displayed for <code>-h</code>.</p>
.after_long_help(<spanclass="string">"Does really amazing things to great people... but be careful with -R, \
like, for real, be careful with this!"</span>)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.before_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1829">source</a><h4class="code-header">pub fn <ahref="#method.before_help"class="fn">before_help</a>(self, help: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Free-form help text for before auto-generated short help (<code>-h</code>).</p>
<p>This is often used for header, copyright, or license information.</p>
<p>If <ahref="struct.Command.html#method.before_long_help"title="method clap::Command::before_long_help"><code>Command::before_long_help</code></a> is not specified, this message will be displayed for <code>--help</code>.</p>
.before_help(<spanclass="string">"Some info I'd like to appear before the help info"</span>)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.before_long_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1850">source</a><h4class="code-header">pub fn <ahref="#method.before_long_help"class="fn">before_long_help</a>(self, help: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Free-form help text for before auto-generated long help (<code>--help</code>).</p>
<p>This is often used for header, copyright, or license information.</p>
<p>If <ahref="struct.Command.html#method.before_help"title="method clap::Command::before_help"><code>Command::before_help</code></a> is not specified, this message will be displayed for <code>-h</code>.</p>
.before_long_help(<spanclass="string">"Some verbose and long info I'd like to appear before the help info"</span>)</code></pre></div>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.version"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1873">source</a><h4class="code-header">pub fn <ahref="#method.version"class="fn">version</a>(self, ver: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the version for the short version (<code>-V</code>) and help messages.</p>
<p>If <ahref="struct.Command.html#method.long_version"title="method clap::Command::long_version"><code>Command::long_version</code></a> is not specified, this message will be displayed for <code>--version</code>.</p>
<p><strong>Pro-tip:</strong> Use <code>clap</code>s convenience macro [<code>crate_version!</code>] to
automatically set your application’s version to the same thing as your
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.long_version"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1901">source</a><h4class="code-header">pub fn <ahref="#method.long_version"class="fn">long_version</a>(self, ver: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the version for the long version (<code>--version</code>) and help messages.</p>
<p>If <ahref="struct.Command.html#method.version"title="method clap::Command::version"><code>Command::version</code></a> is not specified, this message will be displayed for <code>-V</code>.</p>
<p><strong>Pro-tip:</strong> Use <code>clap</code>s convenience macro [<code>crate_version!</code>] to
automatically set your application’s version to the same thing as your
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.override_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#1984">source</a><h4class="code-header">pub fn <ahref="#method.override_help"class="fn">override_help</a>(self, help: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Overrides the <code>clap</code> generated help message (both <code>-h</code> and <code>--help</code>).</p>
<p>This should only be used when the auto-generated message does not suffice.</p>
<p><strong>NOTE:</strong> This <strong>only</strong> replaces the help message for the current
command, meaning if you are using subcommands, those help messages will
still be auto-generated unless you specify a <ahref="struct.Command.html#method.override_help"title="method clap::Command::override_help"><code>Command::override_help</code></a> for
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.help_template"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2056">source</a><h4class="code-header">pub fn <ahref="#method.help_template"class="fn">help_template</a>(self, s: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the help template to be used, overriding the default format.</p>
<p><strong>NOTE:</strong> The template system is by design very simple. Therefore, the
tags have to be written in the lowercase and without spacing.</p>
<p>Tags are given inside curly brackets.</p>
<p>Valid tags are:</p>
<ul>
<li><code>{name}</code> - Display name for the (sub-)command.</li>
<li><code>{author-with-newline}</code> - Author followed by <code>\n</code>.</li>
<li><code>{author-section}</code> - Author preceded and followed by <code>\n</code>.</li>
<li><code>{about}</code> - General description (from <ahref="struct.Command.html#method.about"title="method clap::Command::about"><code>Command::about</code></a> or
<li><code>{usage}</code> - Automatically generated or given usage string.</li>
<li><code>{all-args}</code> - Help for all arguments (options, flags, positional
arguments, and subcommands) including titles.</li>
<li><code>{options}</code> - Help for options.</li>
<li><code>{positionals}</code> - Help for positional arguments.</li>
<li><code>{subcommands}</code> - Help for subcommands.</li>
<li><code>{tab}</code> - Standard tab sized used within clap</li>
<li><code>{after-help}</code> - Help from <ahref="struct.Command.html#method.after_help"title="method clap::Command::after_help"><code>Command::after_help</code></a> or <ahref="struct.Command.html#method.after_long_help"title="method clap::Command::after_long_help"><code>Command::after_long_help</code></a>.</li>
<li><code>{before-help}</code> - Help from <ahref="struct.Command.html#method.before_help"title="method clap::Command::before_help"><code>Command::before_help</code></a> or <ahref="struct.Command.html#method.before_long_help"title="method clap::Command::before_long_help"><code>Command::before_long_help</code></a>.</li>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.flatten_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2098">source</a><h4class="code-header">pub fn <ahref="#method.flatten_help"class="fn">flatten_help</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Flatten subcommand help into the current command’s help</p>
<p>This shows a summary of subcommands within the usage and help for the current command, similar to
<code>git stash --help</code> showing information on <code>push</code>, <code>pop</code>, etc.
To see more information, a user can still pass <code>--help</code> to the individual subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.next_help_heading"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2119">source</a><h4class="code-header">pub fn <ahref="#method.next_help_heading"class="fn">next_help_heading</a>(self, heading: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Set the default section heading for future args.</p>
<p>This will be used for any arg that hasn’t had <ahref="struct.Arg.html#method.help_heading"title="method clap::Arg::help_heading"><code>Arg::help_heading</code></a> called.</p>
<p>This is useful if the default <code>Options</code> or <code>Arguments</code> headings are
not specific enough for one’s use case.</p>
<p>For subcommands, see <ahref="struct.Command.html#method.subcommand_help_heading"title="method clap::Command::subcommand_help_heading"><code>Command::subcommand_help_heading</code></a></p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.next_display_order"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2129">source</a><h4class="code-header">pub fn <ahref="#method.next_display_order"class="fn">next_display_order</a>(self, disp_ord: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Change the starting value for assigning future display orders for args.</p>
<p>This will be used for any arg that hasn’t had <ahref="struct.Arg.html#method.display_order"title="method clap::Arg::display_order"><code>Arg::display_order</code></a> called.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.arg_required_else_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2150">source</a><h4class="code-header">pub fn <ahref="#method.arg_required_else_help"class="fn">arg_required_else_help</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Exit gracefully if no arguments are present (e.g. <code>$ myprog</code>).</p>
<p><strong>NOTE:</strong><ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand"><code>subcommands</code></a> count as arguments</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.allow_missing_positional"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2309">source</a><h4class="code-header">pub fn <ahref="#method.allow_missing_positional"class="fn">allow_missing_positional</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Allows one to implement two styles of CLIs where positionals can be used out of order.</p>
<p>The first example is a CLI where the second to last positional argument is optional, but
the final positional argument is required. Such as <code>$ prog [optional] <required></code> where one
<p>This would otherwise not be allowed. This is useful when <code>[optional]</code> has a default value.</p>
<p><strong>Note:</strong> when using this style of “missing positionals” the final positional <em>must</em> be
<ahref="struct.Arg.html#method.required"title="method clap::Arg::required">required</a> if <code>--</code> will not be used to skip to the final positional argument.</p>
<p><strong>Note:</strong> This style also only allows a single positional argument to be “skipped” without
the use of <code>--</code>. To skip more than one, see the second example.</p>
<p>The second example is when one wants to skip multiple optional positional arguments, and use
of the <code>--</code> operator is OK (but not required if all arguments will be specified anyways).</p>
<p>For example, imagine a CLI which has three positional arguments <code>[foo] [bar] [baz]...</code> where
<code>baz</code> accepts multiple values (similar to man <code>ARGS...</code> style training arguments).</p>
<p>With this setting the following invocations are posisble:</p>
<ul>
<li><code>$ prog foo bar baz1 baz2 baz3</code></li>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Command-3"class="impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2319">source</a><ahref="#impl-Command-3"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h3></section></summary><divclass="docblock"><h4id="subcommand-specific-settings"><ahref="#subcommand-specific-settings">Subcommand-specific Settings</a></h4></div><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.short_flag"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2347">source</a><h4class="code-header">pub fn <ahref="#method.short_flag"class="fn">short_flag</a>(self, short: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.char.html">char</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the short version of the subcommand flag without the preceding <code>-</code>.</p>
<p>Allows the subcommand to be used as if it were an <ahref="struct.Arg.html#method.short"title="method clap::Arg::short"><code>Arg::short</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.long_flag"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2386">source</a><h4class="code-header">pub fn <ahref="#method.long_flag"class="fn">long_flag</a>(self, long: impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the long version of the subcommand flag without the preceding <code>--</code>.</p>
<p>Allows the subcommand to be used as if it were an <ahref="struct.Arg.html#method.long"title="method clap::Arg::long"><code>Arg::long</code></a>.</p>
<p><strong>NOTE:</strong> Any leading <code>-</code> characters will be stripped.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.alias"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2418">source</a><h4class="code-header">pub fn <ahref="#method.alias"class="fn">alias</a>(self, name: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets a hidden alias to this subcommand.</p>
<p>This allows the subcommand to be accessed via <em>either</em> the original name, or this given
alias. This is more efficient and easier than creating multiple hidden subcommands as one
only needs to check for the existence of this command, and not all aliased variants.</p>
<p><strong>NOTE:</strong> Aliases defined with this method are <em>hidden</em> from the help
message. If you’re looking for aliases that will be displayed in the help
message, see <ahref="struct.Command.html#method.visible_alias"title="method clap::Command::visible_alias"><code>Command::visible_alias</code></a>.</p>
<p><strong>NOTE:</strong> When using aliases and checking for the existence of a
particular subcommand within an <ahref="struct.ArgMatches.html"title="struct clap::ArgMatches"><code>ArgMatches</code></a> struct, one only needs to
search for the original name and not all aliases.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.short_flag_alias"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2445">source</a><h4class="code-header">pub fn <ahref="#method.short_flag_alias"class="fn">short_flag_alias</a>(self, name: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.char.html">char</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add an alias, which functions as “hidden” short flag subcommand</p>
<p>This will automatically dispatch as if this subcommand was used. This is more efficient,
and easier than creating multiple hidden subcommands as one only needs to check for the
existence of this command, and not all variants.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.long_flag_alias"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2473">source</a><h4class="code-header">pub fn <ahref="#method.long_flag_alias"class="fn">long_flag_alias</a>(self, name: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add an alias, which functions as a “hidden” long flag subcommand.</p>
<p>This will automatically dispatch as if this subcommand was used. This is more efficient,
and easier than creating multiple hidden subcommands as one only needs to check for the
existence of this command, and not all variants.</p>
<p>This allows the subcommand to be accessed via <em>either</em> the original name or any of the
given aliases. This is more efficient, and easier than creating multiple hidden subcommands
as one only needs to check for the existence of this command and not all aliased variants.</p>
<p><strong>NOTE:</strong> Aliases defined with this method are <em>hidden</em> from the help
message. If looking for aliases that will be displayed in the help
message, see <ahref="struct.Command.html#method.visible_aliases"title="method clap::Command::visible_aliases"><code>Command::visible_aliases</code></a>.</p>
<p><strong>NOTE:</strong> When using aliases and checking for the existence of a
particular subcommand within an <ahref="struct.ArgMatches.html"title="struct clap::ArgMatches"><code>ArgMatches</code></a> struct, one only needs to
search for the original name and not all aliases.</p>
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add aliases, which function as “hidden” short flag subcommands.</p>
<p>These will automatically dispatch as if this subcommand was used. This is more efficient,
and easier than creating multiple hidden subcommands as one only needs to check for the
existence of this command, and not all variants.</p>
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add aliases, which function as “hidden” long flag subcommands.</p>
<p>These will automatically dispatch as if this subcommand was used. This is more efficient,
and easier than creating multiple hidden subcommands as one only needs to check for the
existence of this command, and not all variants.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.visible_alias"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2604">source</a><h4class="code-header">pub fn <ahref="#method.visible_alias"class="fn">visible_alias</a>(self, name: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets a visible alias to this subcommand.</p>
<p>This allows the subcommand to be accessed via <em>either</em> the
original name or the given alias. This is more efficient and easier
than creating hidden subcommands as one only needs to check for
the existence of this command and not all aliased variants.</p>
<p><strong>NOTE:</strong> The alias defined with this method is <em>visible</em> from the help
message and displayed as if it were just another regular subcommand. If
looking for an alias that will not be displayed in the help message, see
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add an alias, which functions as “visible” short flag subcommand</p>
<p>This will automatically dispatch as if this subcommand was used. This is more efficient,
and easier than creating multiple hidden subcommands as one only needs to check for the
existence of this command, and not all variants.</p>
<p>See also <ahref="struct.Command.html#method.short_flag_alias"title="method clap::Command::short_flag_alias"><code>Command::short_flag_alias</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.visible_long_flag_alias"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2665">source</a><h4class="code-header">pub fn <ahref="#method.visible_long_flag_alias"class="fn">visible_long_flag_alias</a>(self, name: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="struct"href="builder/struct.Str.html"title="struct clap::builder::Str">Str</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add an alias, which functions as a “visible” long flag subcommand.</p>
<p>This will automatically dispatch as if this subcommand was used. This is more efficient,
and easier than creating multiple hidden subcommands as one only needs to check for the
existence of this command, and not all variants.</p>
<p>See also <ahref="struct.Command.html#method.long_flag_alias"title="method clap::Command::long_flag_alias"><code>Command::long_flag_alias</code></a>.</p>
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets multiple visible aliases to this subcommand.</p>
<p>This allows the subcommand to be accessed via <em>either</em> the
original name or any of the given aliases. This is more efficient and easier
than creating multiple hidden subcommands as one only needs to check for
the existence of this command and not all aliased variants.</p>
<p><strong>NOTE:</strong> The alias defined with this method is <em>visible</em> from the help
message and displayed as if it were just another regular subcommand. If
looking for an alias that will not be displayed in the help message, see
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add aliases, which function as <em>visible</em> short flag subcommands.</p>
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Add aliases, which function as <em>visible</em> long flag subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.display_order"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2808">source</a><h4class="code-header">pub fn <ahref="#method.display_order"class="fn">display_order</a>(self, ord: impl <aclass="trait"href="builder/trait.IntoResettable.html"title="trait clap::builder::IntoResettable">IntoResettable</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Set the placement of this subcommand within the help.</p>
<p>Subcommands with a lower value will be displayed first in the help message.
Those with the same display order will be sorted.</p>
<p><code>Command</code>s are automatically assigned a display order based on the order they are added to
their parent <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a>.
Overriding this is helpful when the order commands are added in isn’t the same as the
display order, whether in one-off cases or to automatically sort commands.</p>
</code></pre></div></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.hide"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2829">source</a><h4class="code-header">pub fn <ahref="#method.hide"class="fn">hide</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Specifies that this <ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand"><code>subcommand</code></a> should be hidden from help messages</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.subcommand_required"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2856">source</a><h4class="code-header">pub fn <ahref="#method.subcommand_required"class="fn">subcommand_required</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>If no <ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand"><code>subcommand</code></a> is present at runtime, error and exit gracefully.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.allow_external_subcommands"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#2904">source</a><h4class="code-header">pub fn <ahref="#method.allow_external_subcommands"class="fn">allow_external_subcommands</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Assume unexpected positional arguments are a <ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand"><code>subcommand</code></a>.</p>
<p>Arguments will be stored in the <code>""</code> argument in the <ahref="struct.ArgMatches.html"title="struct clap::ArgMatches"><code>ArgMatches</code></a></p>
<p><strong>NOTE:</strong> Use this setting with caution,
as a truly unexpected argument (i.e. one that is <em>NOT</em> an external subcommand)
will <strong>not</strong> cause an error and instead be treated as a potential subcommand.
One should check for such cases manually and inform the user appropriately.</p>
<p><strong>NOTE:</strong> A built-in subcommand will be parsed as an external subcommand when escaped with
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Specifies how to parse external subcommand arguments.</p>
<p>The default parser is for <code>OsString</code>. This can be used to switch it to <code>String</code> or another
type.</p>
<p><strong>NOTE:</strong> Setting this requires <ahref="struct.Command.html#method.allow_external_subcommands"title="method clap::Command::allow_external_subcommands"><code>Command::allow_external_subcommands</code></a></p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.args_conflicts_with_subcommands"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3002">source</a><h4class="code-header">pub fn <ahref="#method.args_conflicts_with_subcommands"class="fn">args_conflicts_with_subcommands</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Specifies that use of an argument prevents the use of <ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand"><code>subcommands</code></a>.</p>
<p>By default <code>clap</code> allows arguments between subcommands such
as <code><cmd> [cmd_args] <subcmd> [subcmd_args] <subsubcmd> [subsubcmd_args]</code>.</p>
<p>This setting disables that functionality and says that arguments can
only follow the <em>final</em> subcommand. For instance using this setting
makes only the following invocations possible:</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.subcommand_precedence_over_arg"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3062">source</a><h4class="code-header">pub fn <ahref="#method.subcommand_precedence_over_arg"class="fn">subcommand_precedence_over_arg</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Prevent subcommands from being consumed as an arguments value.</p>
<p>By default, if an option taking multiple values is followed by a subcommand, the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.subcommand_negates_reqs"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3117">source</a><h4class="code-header">pub fn <ahref="#method.subcommand_negates_reqs"class="fn">subcommand_negates_reqs</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Allows <ahref="struct.Command.html#method.subcommand"title="method clap::Command::subcommand"><code>subcommands</code></a> to override all requirements of the parent command.</p>
<p>For example, if you had a subcommand or top level application with a required argument
that is only required as long as there is no subcommand present,
using this setting would allow you to set those arguments to <ahref="struct.Arg.html#method.required"title="method clap::Arg::required"><code>Arg::required(true)</code></a>
and yet receive no error so long as the user uses a valid subcommand instead.</p>
<p><strong>NOTE:</strong> This defaults to false (using subcommand does <em>not</em> negate requirements)</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.multicall"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3243">source</a><h4class="code-header">pub fn <ahref="#method.multicall"class="fn">multicall</a>(self, yes: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Multiple-personality program dispatched on the binary name (<code>argv[0]</code>)</p>
<p>A “multicall” executable is a single executable
that contains a variety of applets,
and decides which applet to run based on the name of the file.
The executable can be called from different names by creating hard links
or symbolic links to it.</p>
<p>This is desirable for:</p>
<ul>
<li>Easy distribution, a single binary that can install hardlinks to access the different
personalities.</li>
<li>Minimal binary size by sharing common code (e.g. standard library, clap)</li>
<li>Custom shells or REPLs where there isn’t a single top-level command</li>
</ul>
<p>Setting <code>multicall</code> will cause</p>
<ul>
<li><code>argv[0]</code> to be stripped to the base name and parsed as the first argument, as if
<ahref="struct.Command.html#method.no_binary_name"title="method clap::Command::no_binary_name"><code>Command::no_binary_name</code></a> was set.</li>
<li>Help and errors to report subcommands as if they were the top-level command</li>
</ul>
<p>When the subcommand is not present, there are several strategies you may employ, depending
<li>Print the <ahref="struct.Command.html#method.write_help"title="method clap::Command::write_help">help</a> but this might be ambiguous</li>
<li>Disable <code>multicall</code> and re-parse it</li>
<li>Disable <code>multicall</code> and re-parse it with a specific subcommand</li>
</ul>
<p>When detecting the error condition, the <ahref="error/enum.ErrorKind.html"title="enum clap::error::ErrorKind"><code>ErrorKind</code></a> isn’t sufficient as a sub-subcommand
might report the same error. Enable
<ahref="struct.Command.html#method.allow_external_subcommands"title="method clap::Command::allow_external_subcommands"><code>allow_external_subcommands</code></a> if you want to specifically
get the unrecognized binary name.</p>
<p><strong>NOTE:</strong> Multicall can’t be used with <ahref="struct.Command.html#method.no_binary_name"title="method clap::Command::no_binary_name"><code>no_binary_name</code></a> since they interpret
the command name in incompatible ways.</p>
<p><strong>NOTE:</strong> The multicall command cannot have arguments.</p>
<p><strong>NOTE:</strong> Applets are slightly semantically different from subcommands,
so it’s recommended to use <ahref="struct.Command.html#method.subcommand_help_heading"title="method clap::Command::subcommand_help_heading"><code>Command::subcommand_help_heading</code></a> and
<ahref="struct.Command.html#method.subcommand_value_name"title="method clap::Command::subcommand_value_name"><code>Command::subcommand_value_name</code></a> to change the descriptive text as above.</p>
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the value name used for subcommands when printing usage and help.</p>
<p>By default, this is “COMMAND”.</p>
<p>See also <ahref="struct.Command.html#method.subcommand_help_heading"title="method clap::Command::subcommand_help_heading"><code>Command::subcommand_help_heading</code></a></p>
) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass="docblock"><p>Sets the help heading used for subcommands when printing usage and help.</p>
<p>By default, this is “Commands”.</p>
<p>See also <ahref="struct.Command.html#method.subcommand_value_name"title="method clap::Command::subcommand_value_name"><code>Command::subcommand_value_name</code></a></p>
help Print this message or the help of the given subcommand(s)
sub1
Options:
-h, --help Print help
-V, --version Print version
</code></pre></div></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Command-4"class="impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3385">source</a><ahref="#impl-Command-4"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h3></section></summary><divclass="docblock"><h4id="reflection"><ahref="#reflection">Reflection</a></h4></div><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_display_name"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3408">source</a><h4class="code-header">pub fn <ahref="#method.get_display_name"class="fn">get_display_name</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the name of the binary.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_bin_name"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3414">source</a><h4class="code-header">pub fn <ahref="#method.get_bin_name"class="fn">get_bin_name</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the name of the binary.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_name"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3431">source</a><h4class="code-header">pub fn <ahref="#method.get_name"class="fn">get_name</a>(&self) ->&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a></h4></section></summary><divclass="docblock"><p>Get the name of the cmd.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_version"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3443">source</a><h4class="code-header">pub fn <ahref="#method.get_version"class="fn">get_version</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the version of the cmd.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_long_version"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3449">source</a><h4class="code-header">pub fn <ahref="#method.get_long_version"class="fn">get_long_version</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the long version of the cmd.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_author"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3455">source</a><h4class="code-header">pub fn <ahref="#method.get_author"class="fn">get_author</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the authors of the cmd.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_short_flag"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3461">source</a><h4class="code-header">pub fn <ahref="#method.get_short_flag"class="fn">get_short_flag</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.char.html">char</a>></h4></section></summary><divclass="docblock"><p>Get the short flag of the subcommand.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_long_flag"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3467">source</a><h4class="code-header">pub fn <ahref="#method.get_long_flag"class="fn">get_long_flag</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the long flag of the subcommand.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_about"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3475">source</a><h4class="code-header">pub fn <ahref="#method.get_about"class="fn">get_about</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>></h4></section></summary><divclass="docblock"><p>Get the help message specified via <ahref="struct.Command.html#method.about"title="method clap::Command::about"><code>Command::about</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_long_about"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3483">source</a><h4class="code-header">pub fn <ahref="#method.get_long_about"class="fn">get_long_about</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>></h4></section></summary><divclass="docblock"><p>Get the help message specified via <ahref="struct.Command.html#method.long_about"title="method clap::Command::long_about"><code>Command::long_about</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_flatten_help_set"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3489">source</a><h4class="code-header">pub fn <ahref="#method.is_flatten_help_set"class="fn">is_flatten_help_set</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Get the custom section heading specified via <ahref="struct.Command.html#method.flatten_help"title="method clap::Command::flatten_help"><code>Command::flatten_help</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_next_help_heading"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3497">source</a><h4class="code-header">pub fn <ahref="#method.get_next_help_heading"class="fn">get_next_help_heading</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Get the custom section heading specified via <ahref="struct.Command.html#method.next_help_heading"title="method clap::Command::next_help_heading"><code>Command::next_help_heading</code></a>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_visible_aliases"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3503">source</a><h4class="code-header">pub fn <ahref="#method.get_visible_aliases"class="fn">get_visible_aliases</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Iterate through the <em>visible</em> aliases for this subcommand.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_visible_short_flag_aliases"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3512">source</a><h4class="code-header">pub fn <ahref="#method.get_visible_short_flag_aliases"class="fn">get_visible_short_flag_aliases</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.char.html">char</a>></h4></section></summary><divclass="docblock"><p>Iterate through the <em>visible</em> short aliases for this subcommand.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_visible_long_flag_aliases"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3521">source</a><h4class="code-header">pub fn <ahref="#method.get_visible_long_flag_aliases"class="fn">get_visible_long_flag_aliases</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Iterate through the <em>visible</em> long aliases for this subcommand.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_all_aliases"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3530">source</a><h4class="code-header">pub fn <ahref="#method.get_all_aliases"class="fn">get_all_aliases</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Iterate through the set of <em>all</em> the aliases for this subcommand, both visible and hidden.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_all_short_flag_aliases"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3536">source</a><h4class="code-header">pub fn <ahref="#method.get_all_short_flag_aliases"class="fn">get_all_short_flag_aliases</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.char.html">char</a>></h4></section></summary><divclass="docblock"><p>Iterate through the set of <em>all</em> the short aliases for this subcommand, both visible and hidden.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_all_long_flag_aliases"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3542">source</a><h4class="code-header">pub fn <ahref="#method.get_all_long_flag_aliases"class="fn">get_all_long_flag_aliases</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Iterate through the set of <em>all</em> the long aliases for this subcommand, both visible and hidden.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_color"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3552">source</a><h4class="code-header">pub fn <ahref="#method.get_color"class="fn">get_color</a>(&self) -><aclass="enum"href="enum.ColorChoice.html"title="enum clap::ColorChoice">ColorChoice</a></h4></section></summary><divclass="docblock"><p>Should we color the output?</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_styles"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3573">source</a><h4class="code-header">pub fn <ahref="#method.get_styles"class="fn">get_styles</a>(&self) ->&<aclass="struct"href="builder/struct.Styles.html"title="struct clap::builder::Styles">Styles</a></h4></section></summary><divclass="docblock"><p>Return the current <code>Styles</code> for the <code>Command</code></p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_subcommands"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3579">source</a><h4class="code-header">pub fn <ahref="#method.get_subcommands"class="fn">get_subcommands</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>></h4></section></summary><divclass="docblock"><p>Iterate through the set of subcommands, getting a reference to each.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_subcommands_mut"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3585">source</a><h4class="code-header">pub fn <ahref="#method.get_subcommands_mut"class="fn">get_subcommands_mut</a>(&mut self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &mut <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>></h4></section></summary><divclass="docblock"><p>Iterate through the set of subcommands, getting a mutable reference to each.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.has_subcommands"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3591">source</a><h4class="code-header">pub fn <ahref="#method.has_subcommands"class="fn">has_subcommands</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns <code>true</code> if this <code>Command</code> has subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_subcommand_help_heading"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3597">source</a><h4class="code-header">pub fn <ahref="#method.get_subcommand_help_heading"class="fn">get_subcommand_help_heading</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Returns the help heading for listing subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_subcommand_value_name"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3603">source</a><h4class="code-header">pub fn <ahref="#method.get_subcommand_value_name"class="fn">get_subcommand_value_name</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>></h4></section></summary><divclass="docblock"><p>Returns the subcommand value name.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_before_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3609">source</a><h4class="code-header">pub fn <ahref="#method.get_before_help"class="fn">get_before_help</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>></h4></section></summary><divclass="docblock"><p>Returns the help heading for listing subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_before_long_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3615">source</a><h4class="code-header">pub fn <ahref="#method.get_before_long_help"class="fn">get_before_long_help</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>></h4></section></summary><divclass="docblock"><p>Returns the help heading for listing subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_after_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3621">source</a><h4class="code-header">pub fn <ahref="#method.get_after_help"class="fn">get_after_help</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>></h4></section></summary><divclass="docblock"><p>Returns the help heading for listing subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_after_long_help"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3627">source</a><h4class="code-header">pub fn <ahref="#method.get_after_long_help"class="fn">get_after_long_help</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="builder/struct.StyledStr.html"title="struct clap::builder::StyledStr">StyledStr</a>></h4></section></summary><divclass="docblock"><p>Returns the help heading for listing subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.find_subcommand"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3635">source</a><h4class="code-header">pub fn <ahref="#method.find_subcommand"class="fn">find_subcommand</a>(&self, name: impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.AsRef.html"title="trait core::convert::AsRef">AsRef</a><<aclass="struct"href="https://doc.rust-lang.org/1.76.0/std/ffi/os_str/struct.OsStr.html"title="struct std::ffi::os_str::OsStr">OsStr</a>>) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&<aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>></h4></section></summary><divclass="docblock"><p>Find subcommand such that its name or one of aliases equals <code>name</code>.</p>
<p>This does not recurse through subcommands of subcommands.</p>
) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><&mut <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a>></h4></section></summary><divclass="docblock"><p>Find subcommand such that its name or one of aliases equals <code>name</code>, returning
a mutable reference to the subcommand.</p>
<p>This does not recurse through subcommands of subcommands.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_groups"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3655">source</a><h4class="code-header">pub fn <ahref="#method.get_groups"class="fn">get_groups</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="struct"href="struct.ArgGroup.html"title="struct clap::ArgGroup">ArgGroup</a>></h4></section></summary><divclass="docblock"><p>Iterate through the set of groups.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_arguments"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3661">source</a><h4class="code-header">pub fn <ahref="#method.get_arguments"class="fn">get_arguments</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>></h4></section></summary><divclass="docblock"><p>Iterate through the set of arguments.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_positionals"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3667">source</a><h4class="code-header">pub fn <ahref="#method.get_positionals"class="fn">get_positionals</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>></h4></section></summary><divclass="docblock"><p>Iterate through the <em>positionals</em> arguments.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_opts"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3672">source</a><h4class="code-header">pub fn <ahref="#method.get_opts"class="fn">get_opts</a>(&self) -> impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a><Item = &<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>></h4></section></summary><divclass="docblock"><p>Iterate through the <em>options</em>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.get_arg_conflicts_with"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3686">source</a><h4class="code-header">pub fn <ahref="#method.get_arg_conflicts_with"class="fn">get_arg_conflicts_with</a>(&self, arg: &<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>) -><aclass="struct"href="https://doc.rust-lang.org/1.76.0/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><&<aclass="struct"href="struct.Arg.html"title="struct clap::Arg">Arg</a>></h4></section></summary><divclass="docblock"><p>Get a list of all arguments the given argument conflicts with.</p>
<p>If the provided argument is declared as global, the conflicts will be determined
based on the propagation rules of global arguments.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Command-5"class="impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#3943">source</a><ahref="#impl-Command-5"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.build"class="method"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#4020">source</a><h4class="code-header">pub fn <ahref="#method.build"class="fn">build</a>(&mut self)</h4></section></summary><divclass="docblock"><p>Prepare for introspecting on all included <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a>s</p>
<p>Call this on the top-level <ahref="struct.Command.html"title="struct clap::Command"><code>Command</code></a> when done building and before reading state for
cases like completions, custom help output, etc.</p>
</div></details></div></details></div><h2id="trait-implementations"class="section-header">Trait Implementations<ahref="#trait-implementations"class="anchor">§</a></h2><divid="trait-implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Clone-for-Command"class="impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#72">source</a><ahref="#impl-Clone-for-Command"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone"class="method trait-impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#72">source</a><ahref="#method.clone"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone"class="fn">clone</a>(&self) -><aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h4></section></summary><divclass='docblock'>Returns a copy of the value. <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_from"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="src"href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><ahref="#method.clone_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from"class="fn">clone_from</a>(&mut self, source: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&Self</a>)</h4></section></summary><divclass='docblock'>Performs copy-assignment from <code>source</code>. <ahref="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-Command"class="impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#72">source</a><ahref="#impl-Debug-for-Command"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="struct.Command.html"title="struct clap::Command">Command</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl"><aclass="src rightside"href="../src/clap_builder/builder/command.rs.html#72">source</a><ahref="#method.fmt"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt"class="fn">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/1.76.0/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/1.76.0/core/fmt/struct.Error.html"title="struct core::fmt::Error">Error</a>></h4></section></summary><divclass='docblock'>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Default-for-Command"class="impl"><aclass="src rightside"href="../src/clap_
T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#141">source</a><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id"class="fn">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.76.0/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#208">source</a><ahref="#impl-Borrow%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#210">source</a><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow"class="fn">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&T</a></h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#216">source</a><ahref="#impl-BorrowMut%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#217">source</a><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fn">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a></h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#763">source</a><ahref="#impl-From%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from-1"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#766">source</a><ahref="#method.from-1"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html#tymethod.from"class="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#747-749">source</a><ahref="#impl-Into%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T<divclass="where">where
<p>That is, this conversion is whatever the implementation of
<code><ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-ToOwned-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#83-85">source</a><ahref="#impl-ToOwned-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Owned"class="associatedtype trait-impl"><ahref="#associatedtype.Owned"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="associatedtype">Owned</a> = T</h4></section></summary><divclass='docblock'>The resulting type after obtaining ownership.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.to_owned"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#88">source</a><ahref="#method.to_owned"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fn">to_owned</a>(&self) -> T</h4></section></summary><divclass='docblock'>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#92">source</a><ahref="#method.clone_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fn">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a>)</h4></section></summary><divclass='docblock'>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-ToString-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/string.rs.html#2600">source</a><ahref="#impl-ToString-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.76.0/alloc/string/trait.ToString.html"title="trait alloc::string::ToString">ToString</a> for T<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.to_string"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/alloc/string.rs.html#2606">source</a><ahref="#method.to_string"class="anchor">§</a><h4class="code-header">default fn <ahref="https://doc.rust-lang.org/1.76.0/alloc/string/trait.ToString.html#tymethod.to_string"class="fn">to_string</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass='docblock'>Converts the given value to a <code>String</code>. <ahref="https://doc.rust-lang.org/1.76.0/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#803-805">source</a><ahref="#impl-TryFrom%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#810">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#788-790">source</a><ahref="#impl-TryInto%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#795">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>