Merge pull request #148 from Keats/master

docs(readme): use with_name for subcommands
This commit is contained in:
Kevin K. 2015-07-06 23:33:26 -04:00
commit 884bee3654

View file

@ -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...
}
```