mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
Tweaks ArgsNegateSubcommands
's doc
This commit is contained in:
parent
476dd190b7
commit
a8060d305b
1 changed files with 9 additions and 7 deletions
|
@ -407,14 +407,16 @@ pub enum AppSettings {
|
|||
/// [`ErrorKind::UnknownArgument`]: crate::ErrorKind::UnknownArgument
|
||||
AllowExternalSubcommands,
|
||||
|
||||
/// Specifies that use of a valid argument negates [`subcommands`] being used after. By default
|
||||
/// `clap` allows arguments between subcommands such as
|
||||
/// `<cmd> [cmd_args] <cmd2> [cmd2_args] <cmd3> [cmd3_args]`. This setting disables that
|
||||
/// functionality and says that arguments can only follow the *final* subcommand. For instance
|
||||
/// using this setting makes only the following invocations possible:
|
||||
/// Specifies that use of a valid argument negates [`subcommands`] being
|
||||
/// used after. By default `clap` allows arguments between subcommands such
|
||||
/// as `<cmd> [cmd_args] <subcmd> [subcmd_args] <subsubcmd> [subsubcmd_args]`.
|
||||
///
|
||||
/// * `<cmd> <cmd2> <cmd3> [cmd3_args]`
|
||||
/// * `<cmd> <cmd2> [cmd2_args]`
|
||||
/// This setting disables that functionality and says that arguments can
|
||||
/// only follow the *final* subcommand. For instance using this setting
|
||||
/// makes only the following invocations possible:
|
||||
///
|
||||
/// * `<cmd> <subcmd> <subsubcmd> [subsubcmd_args]`
|
||||
/// * `<cmd> <subcmd> [subcmd_args]`
|
||||
/// * `<cmd> [cmd_args]`
|
||||
///
|
||||
/// # Examples
|
||||
|
|
Loading…
Reference in a new issue