mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +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'
|
"-c --config=[CONFIG] 'Sets a custom config file'
|
||||||
<INPUT> 'Sets the input file to use'
|
<INPUT> 'Sets the input file to use'
|
||||||
[debug]... -d 'Sets the level of debugging information'")
|
[debug]... -d 'Sets the level of debugging information'")
|
||||||
.subcommand(SubCommand::new("test")
|
.subcommand(SubCommand::with_name("test")
|
||||||
.about("controls testing features")
|
.about("controls testing features")
|
||||||
.version("1.3")
|
.version("1.3")
|
||||||
.author("Someone E. <someone_else@other.com>")
|
.author("Someone E. <someone_else@other.com>")
|
||||||
|
@ -155,7 +155,7 @@ fn main() {
|
||||||
.short("d")
|
.short("d")
|
||||||
.multiple(true)
|
.multiple(true)
|
||||||
.help("Sets the level of debugging information"))
|
.help("Sets the level of debugging information"))
|
||||||
.subcommand(SubCommand::new("test")
|
.subcommand(SubCommand::with_name("test")
|
||||||
.about("controls testing features")
|
.about("controls testing features")
|
||||||
.version("1.3")
|
.version("1.3")
|
||||||
.author("Someone E. <someone_else@other.com>")
|
.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