We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc2da00 + a95d64f commit 65cb2e9Copy full SHA for 65cb2e9
1 file changed
crates/ripasso-cursive/src/main.rs
@@ -2266,17 +2266,9 @@ fn check_args() {
2266
2267
match args.len() {
2268
1 => (),
2269
- 2 => {
2270
- if args[1] == "-h" || args[1] == "--help" {
2271
- help();
2272
- process::exit(0);
2273
- } else {
2274
- eprintln!(
2275
- "{}",
2276
- CATALOG.gettext("Unknown argument, usage: ripasso-cursive [-h|--help]")
2277
- );
2278
- process::exit(1);
2279
- }
+ 2 if (args[1] == "-h" || args[1] == "--help") => {
+ help();
+ process::exit(0);
2280
}
2281
_ => {
2282
eprintln!(
0 commit comments