forked from clap-rs/clap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Impact: - Binary size: 556.6 KiB to 578.4 KiB - build time: 6.4950 us (7% slower) - parse time: 7.7256 us - parse sc time: 8.1580 us (5% faster) Fixes clap-rs#1041 Fixes clap-rs#2150
- Loading branch information
Showing
61 changed files
with
799 additions
and
620 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ fn build_help(cmd: &mut Command) -> String { | |
String::from_utf8(content).unwrap() | ||
} | ||
|
||
fn app_example1<'c>() -> Command<'c> { | ||
fn app_example1() -> Command { | ||
Command::new("MyApp") | ||
.version("1.0") | ||
.author("Kevin K. <[email protected]>") | ||
|
@@ -30,14 +30,14 @@ fn app_example1<'c>() -> Command<'c> { | |
) | ||
} | ||
|
||
fn app_example2<'c>() -> Command<'c> { | ||
fn app_example2() -> Command { | ||
Command::new("MyApp") | ||
.version("1.0") | ||
.author("Kevin K. <[email protected]>") | ||
.about("Does awesome things") | ||
} | ||
|
||
fn app_example3<'c>() -> Command<'c> { | ||
fn app_example3() -> Command { | ||
Command::new("MyApp") | ||
.arg( | ||
Arg::new("debug") | ||
|
@@ -65,7 +65,7 @@ fn app_example3<'c>() -> Command<'c> { | |
) | ||
} | ||
|
||
fn app_example4<'c>() -> Command<'c> { | ||
fn app_example4() -> Command { | ||
Command::new("MyApp") | ||
.about("Parses an input file to do awesome things") | ||
.version("1.0") | ||
|
@@ -91,7 +91,7 @@ fn app_example4<'c>() -> Command<'c> { | |
) | ||
} | ||
|
||
fn app_example5<'c>() -> Command<'c> { | ||
fn app_example5() -> Command { | ||
Command::new("MyApp").arg( | ||
Arg::new("awesome") | ||
.help("turns up the awesome") | ||
|
@@ -101,7 +101,7 @@ fn app_example5<'c>() -> Command<'c> { | |
) | ||
} | ||
|
||
fn app_example6<'c>() -> Command<'c> { | ||
fn app_example6() -> Command { | ||
Command::new("MyApp") | ||
.arg( | ||
Arg::new("input") | ||
|
@@ -113,7 +113,7 @@ fn app_example6<'c>() -> Command<'c> { | |
.arg(Arg::new("config").help("the config file to use").index(2)) | ||
} | ||
|
||
fn app_example7<'c>() -> Command<'c> { | ||
fn app_example7() -> Command { | ||
Command::new("MyApp") | ||
.arg(Arg::new("config")) | ||
.arg(Arg::new("output")) | ||
|
@@ -130,7 +130,7 @@ fn app_example7<'c>() -> Command<'c> { | |
) | ||
} | ||
|
||
fn app_example8<'c>() -> Command<'c> { | ||
fn app_example8() -> Command { | ||
Command::new("MyApp") | ||
.arg(Arg::new("config")) | ||
.arg(Arg::new("output")) | ||
|
@@ -147,7 +147,7 @@ fn app_example8<'c>() -> Command<'c> { | |
) | ||
} | ||
|
||
fn app_example10<'c>() -> Command<'c> { | ||
fn app_example10() -> Command { | ||
Command::new("myapp").about("does awesome things").arg( | ||
Arg::new("CONFIG") | ||
.help("The config file to use (default is \"config.json\")") | ||
|
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.