Skip to content

Commit 28b7e31

Browse files
committed
docs(readme): use with_name for subcommands
::new doesn't exist anymore
1 parent d55c021 commit 28b7e31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn main() {
8888
"-c --config=[CONFIG] 'Sets a custom config file'
8989
<INPUT> 'Sets the input file to use'
9090
[debug]... -d 'Sets the level of debugging information'")
91-
.subcommand(SubCommand::new("test")
91+
.subcommand(SubCommand::with_name("test")
9292
.about("controls testing features")
9393
.version("1.3")
9494
.author("Someone E. <someone_else@other.com>")
@@ -155,7 +155,7 @@ fn main() {
155155
.short("d")
156156
.multiple(true)
157157
.help("Sets the level of debugging information"))
158-
.subcommand(SubCommand::new("test")
158+
.subcommand(SubCommand::with_name("test")
159159
.about("controls testing features")
160160
.version("1.3")
161161
.author("Someone E. <someone_else@other.com>")
@@ -191,7 +191,7 @@ fn main() {
191191
}
192192
}
193193

194-
// more porgram logic goes here...
194+
// more program logic goes here...
195195
}
196196
```
197197

0 commit comments

Comments
 (0)