@@ -104,39 +104,29 @@ pub struct InfoCliOptions {
104104}
105105
106106#[ derive( Clone , Debug , Args , PartialEq , Eq ) ]
107- #[ command( next_help_heading = "ASCII" ) ]
107+ #[ command( next_help_heading = tr! ( "cli-ascii-heading" ) ) ]
108108pub struct AsciiCliOptions {
109- /// Takes a non-empty STRING as input to replace the ASCII logo
110- ///
111- /// It is possible to pass a generated STRING by command substitution
112- ///
113- /// For example:
114- ///
115- /// '--ascii-input "$(fortune | cowsay -W 25)"'
116- #[ arg( long, value_name = tr!( "cli-value-string" ) , value_hint = ValueHint :: CommandString ) ]
109+ #[ arg( long, value_name = tr!( "cli-value-string" ) , value_hint = ValueHint :: CommandString , help = tr!( "cli-ascii-ascii-input" ) ) ]
117110 pub ascii_input : Option < String > ,
118- /// Colors (X X X...) to print the ascii art
119111 #[ arg(
120112 long,
121113 num_args = 1 ..,
122114 value_name = "X" ,
123115 short = 'c' ,
124116 value_parser = value_parser!( u8 ) . range( ..16 ) ,
117+ help = tr!( "cli-ascii-ascii-colors" )
125118 ) ]
126119 pub ascii_colors : Vec < u8 > ,
127- /// Which LANGUAGE's ascii art to print
128120 #[ arg(
129121 long,
130122 short,
131123 value_name = tr!( "cli-value-language" ) ,
132124 value_enum,
133- hide_possible_values = true
125+ hide_possible_values = true ,
126+ help = tr!( "cli-ascii-ascii-language" )
134127 ) ]
135128 pub ascii_language : Option < Language > ,
136- /// Specify when to use true color
137- ///
138- /// If set to auto: true color will be enabled if supported by the terminal
139- #[ arg( long, default_value = "auto" , value_name = tr!( "cli-value-when" ) , value_enum) ]
129+ #[ arg( long, default_value = "auto" , value_name = tr!( "cli-value-when" ) , value_enum, help = tr!( "cli-ascii-true-color" ) ) ]
140130 pub true_color : When ,
141131}
142132
@@ -162,68 +152,51 @@ pub struct ImageCliOptions {
162152}
163153
164154#[ derive( Clone , Debug , Args , PartialEq , Eq ) ]
165- #[ command( next_help_heading = "TEXT FORMATTING" ) ]
155+ #[ command( next_help_heading = tr! ( "cli-text-heading" ) ) ]
166156pub struct TextForamttingCliOptions {
167- /// Changes the text colors (X X X...)
168- ///
169- /// Goes in order of title, ~, underline, subtitle, colon, and info
170- ///
171- /// For example:
172- ///
173- /// '--text-colors 9 10 11 12 13 14'
157+
174158 #[ arg(
175159 long,
176160 short,
177161 value_name = "X" ,
178162 value_parser = value_parser!( u8 ) . range( ..16 ) ,
179- num_args = 1 ..=6
163+ num_args = 1 ..=6 ,
164+ help = tr!( "cli-text-colors" )
180165 ) ]
181166 pub text_colors : Vec < u8 > ,
182- /// Use ISO 8601 formatted timestamps
183- #[ arg( long, short = 'z' ) ]
167+ #[ arg( long, short = 'z' , help = tr!( "cli-text-iso-time" ) ) ]
184168 pub iso_time : bool ,
185- /// Which thousands SEPARATOR to use
186- #[ arg( long, value_name = tr!( "cli-value-separator" ) , default_value = "plain" , value_enum) ]
169+ #[ arg( long, value_name = tr!( "cli-value-separator" ) , default_value = "plain" , value_enum, help = tr!( "cli-text-number-separator" ) ) ]
187170 pub number_separator : NumberSeparator ,
188- /// Turns off bold formatting
189- #[ arg( long) ]
171+ #[ arg( long, help = tr!( "cli-text-no-bold" ) ) ]
190172 pub no_bold : bool ,
191173}
192174#[ derive( Clone , Debug , Args , PartialEq , Eq , Default ) ]
193- #[ command( next_help_heading = "VISUALS" ) ]
175+ #[ command( next_help_heading = tr! ( "cli-visuals-heading" ) ) ]
194176pub struct VisualsCliOptions {
195- /// Hides the color palette
196- #[ arg( long) ]
177+ #[ arg( long, help = tr!( "cli-visuals-no-color-palette" ) ) ]
197178 pub no_color_palette : bool ,
198- /// Hides the ascii art or image if provided
199- #[ arg( long) ]
179+ #[ arg( long, help = tr!( "cli-visuals-no-art" ) ) ]
200180 pub no_art : bool ,
201- /// Use Nerd Font icons
202- ///
203- /// Replaces language chips with Nerd Font icons
204- #[ arg( long) ]
181+ #[ arg( long, help = tr!( "cli-visuals-nerd-fonts" ) ) ]
205182 pub nerd_fonts : bool ,
206183}
207184
208185#[ derive( Clone , Debug , Args , PartialEq , Eq , Default ) ]
209- #[ command( next_help_heading = "DEVELOPER" ) ]
186+ #[ command( next_help_heading = tr! ( "cli-dev-heading" ) ) ]
210187pub struct DeveloperCliOptions {
211- /// Outputs Onefetch in a specific format
212- #[ arg( long, short, value_name = tr!( "cli-value-format" ) , value_enum) ]
188+ #[ arg( long, short, value_name = tr!( "cli-value-format" ) , value_enum, help = tr!( "cli-dev-output" ) ) ]
213189 pub output : Option < SerializationFormat > ,
214- /// If provided, outputs the completion file for given SHELL
215- #[ arg( long = "generate" , value_name = tr!( "cli-value-shell" ) , value_enum) ]
190+ #[ arg( long = "generate" , value_name = tr!( "cli-value-shell" ) , value_enum, help = tr!( "cli-dev-completion" ) ) ]
216191 pub completion : Option < Shell > ,
217192}
218193
219194#[ derive( Clone , Debug , Args , PartialEq , Eq , Default ) ]
220- #[ command( next_help_heading = "OTHER" ) ]
195+ #[ command( next_help_heading = tr! ( "cli-other-heading" ) ) ]
221196pub struct OtherCliOptions {
222- /// Prints out supported languages
223- #[ arg( long, short) ]
197+ #[ arg( long, short, help = tr!( "cli-other-languages" ) ) ]
224198 pub languages : bool ,
225- /// Prints out supported package managers
226- #[ arg( long, short) ]
199+ #[ arg( long, short, help = tr!( "cli-other-package-managers" ) ) ]
227200 pub package_managers : bool ,
228201}
229202
0 commit comments