+7
src/main.rs
+7
src/main.rs
···
15
15
// if key omitted or file not found, fall back to env
16
16
// if env omitted, error out and quit
17
17
18
+
// if any args are `-h` || `--help` display help and quit
19
+
for arg in std::env::args() {
20
+
if arg == "-h" || arg == "--help" {
21
+
help();
22
+
return Err(())
23
+
}}
24
+
18
25
return Ok(Config {
19
26
handle: String::from(""),
20
27
repo_name: String::from(""),