File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,9 @@ fn main() -> Result<()> {
113
113
. author ( "o2sh <[email protected] >" )
114
114
. about ( crate_description ! ( ) )
115
115
. 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." )
122
119
)
123
120
. arg (
124
121
Arg :: with_name ( "ascii-language" )
@@ -137,7 +134,7 @@ fn main() -> Result<()> {
137
134
. arg (
138
135
Arg :: with_name ( "disable-fields" )
139
136
. long ( "disable-fields" )
140
- . short ( "D " )
137
+ . short ( "d " )
141
138
. multiple ( true )
142
139
. takes_value ( true )
143
140
. case_insensitive ( true )
@@ -249,7 +246,7 @@ fn main() -> Result<()> {
249
246
std:: process:: exit ( 0 ) ;
250
247
}
251
248
252
- let dir = String :: from ( matches. value_of ( "directory " ) . unwrap ( ) ) ;
249
+ let dir = String :: from ( matches. value_of ( "input " ) . unwrap ( ) ) ;
253
250
254
251
let custom_logo: Language = if let Some ( ascii_language) = matches. value_of ( "ascii-language" ) {
255
252
Language :: from_str ( & ascii_language. to_lowercase ( ) ) . unwrap ( )
You can’t perform that action at this time.
0 commit comments