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.
1 parent 1991c9e commit 2e6d7cfCopy full SHA for 2e6d7cf
src/main.rs
@@ -8,6 +8,7 @@ enum Flags {
8
_Metadata,
9
PreviewImage,
10
Thumbnails,
11
+ Help,
12
}
13
14
// impl fmt::Display for Flags {
@@ -36,6 +37,7 @@ impl Flags {
36
37
Flags::_Metadata => "metadata",
38
Flags::PreviewImage => "preview_image",
39
Flags::Thumbnails => "thumbs",
40
+ Flags::Help => "help",
41
42
43
@@ -85,8 +87,8 @@ fn main() {
85
87
)
86
88
.get_matches();
89
- let input = matches.value_of("input").unwrap_or("help");
- if input == "help" {
90
+ let input = matches.value_of("input").unwrap_or(Flags::Help.as_str());
91
+ if input == Flags::Help.as_str() {
92
println!("Usage: <TODO>");
93
process::exit(1);
94
0 commit comments