-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(readme): use with_name for subcommands
::new doesn't exist anymore
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. <[email protected]>") | ||
|
@@ -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. <[email protected]>") | ||
|
@@ -191,7 +191,7 @@ fn main() { | |
} | ||
} | ||
|
||
// more porgram logic goes here... | ||
// more program logic goes here... | ||
} | ||
``` | ||
|
||
|