Skip to content

Commit a9b775a

Browse files
committed
replace directory OPTIONS with input ARGS
1 parent 81fd2b1 commit a9b775a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/main.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,9 @@ fn main() -> Result<()> {
113113
.author("o2sh <[email protected]>")
114114
.about(crate_description!())
115115
.arg(
116-
Arg::with_name("directory")
117-
.help("Run as if git was started in <directory> instead of the current working directory.")
118-
.short("d")
119-
.long("dir")
120-
.takes_value(true)
121-
.default_value("."),
116+
Arg::with_name("input")
117+
.default_value(".")
118+
.help("Run as if onefetch was started in <input> instead of the current working directory.")
122119
)
123120
.arg(
124121
Arg::with_name("ascii-language")
@@ -137,7 +134,7 @@ fn main() -> Result<()> {
137134
.arg(
138135
Arg::with_name("disable-fields")
139136
.long("disable-fields")
140-
.short("D")
137+
.short("d")
141138
.multiple(true)
142139
.takes_value(true)
143140
.case_insensitive(true)
@@ -249,7 +246,7 @@ fn main() -> Result<()> {
249246
std::process::exit(0);
250247
}
251248

252-
let dir = String::from(matches.value_of("directory").unwrap());
249+
let dir = String::from(matches.value_of("input").unwrap());
253250

254251
let custom_logo: Language = if let Some(ascii_language) = matches.value_of("ascii-language") {
255252
Language::from_str(&ascii_language.to_lowercase()).unwrap()

0 commit comments

Comments
 (0)