File tree 1 file changed +5
-12
lines changed
1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -153,19 +153,12 @@ Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
153
153
"15" . bright_white( ) ,
154
154
) ) )
155
155
. arg (
156
- Arg :: with_name ( "bold" )
156
+ Arg :: with_name ( "no- bold" )
157
157
. short ( "b" )
158
- . long ( "bold" )
159
- . takes_value ( true )
160
- . default_value ( "on" )
161
- . hide_default_value ( true )
162
- . possible_values ( & [ "on" , "off" ] )
163
- . hide_possible_values ( true )
158
+ . long ( "no-bold" )
164
159
. help ( & format ! (
165
- "{}{}{}" ,
166
- "Specifies whether the logo and all info labels should be bold." ,
167
- "\n Possible values: [\" on\" , \" off\" ]" ,
168
- "\n Default value: [\" on\" ]"
160
+ "{}" ,
161
+ "Turns off bold formatting for the logo and all labels"
169
162
) ) )
170
163
. arg (
171
164
Arg :: with_name ( "languages" )
@@ -224,7 +217,7 @@ Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
224
217
Vec :: new ( )
225
218
} ;
226
219
227
- let bold_flag = if let Some ( "off" ) = matches. value_of ( " bold") {
220
+ let bold_flag = if matches. is_present ( "no- bold") {
228
221
false
229
222
} else {
230
223
true
You can’t perform that action at this time.
0 commit comments