mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
Merge pull request #148 from Keats/master
docs(readme): use with_name for subcommands
This commit is contained in:
commit
884bee3654
1 changed files with 3 additions and 3 deletions
|
@ -88,7 +88,7 @@ fn main() {
|
|||
"-c --config=[CONFIG] 'Sets a custom config file'
|
||||
<INPUT> 'Sets the input file to use'
|
||||
[debug]... -d 'Sets the level of debugging information'")
|
||||
.subcommand(SubCommand::new("test")
|
||||
.subcommand(SubCommand::with_name("test")
|
||||
.about("controls testing features")
|
||||
.version("1.3")
|
||||
.author("Someone E. <someone_else@other.com>")
|
||||
|
@ -155,7 +155,7 @@ fn main() {
|
|||
.short("d")
|
||||
.multiple(true)
|
||||
.help("Sets the level of debugging information"))
|
||||
.subcommand(SubCommand::new("test")
|
||||
.subcommand(SubCommand::with_name("test")
|
||||
.about("controls testing features")
|
||||
.version("1.3")
|
||||
.author("Someone E. <someone_else@other.com>")
|
||||
|
@ -191,7 +191,7 @@ fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
// more porgram logic goes here...
|
||||
// more program logic goes here...
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue