Skip to content

Commit

Permalink
docs(readme): use with_name for subcommands
Browse files Browse the repository at this point in the history
::new doesn't exist anymore
  • Loading branch information
Keats committed Jul 7, 2015
1 parent d55c021 commit 28b7e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -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>")
Expand Down Expand Up @@ -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>")
Expand Down Expand Up @@ -191,7 +191,7 @@ fn main() {
}
}

// more porgram logic goes here...
// more program logic goes here...
}
```

Expand Down

0 comments on commit 28b7e31

Please sign in to comment.