99//
1010
1111use clap:: Parser ;
12- use gettextrs:: { bind_textdomain_codeset, setlocale, textdomain, LocaleCategory } ;
12+ use gettextrs:: { bind_textdomain_codeset, gettext , setlocale, textdomain, LocaleCategory } ;
1313use plib:: PROJECT_NAME ;
1414use regex:: Regex ;
1515use std:: {
@@ -21,31 +21,49 @@ use std::{
2121 path:: PathBuf ,
2222} ;
2323
24- /// file - determine file type
2524#[ derive( Parser ) ]
26- #[ command( version, about, disable_help_flag = true ) ]
25+ #[ command(
26+ version,
27+ disable_help_flag = true ,
28+ about = gettext( "file - determine file type" )
29+ ) ]
2730struct Args {
2831 #[ arg( long, action = clap:: ArgAction :: HelpLong ) ]
2932 help : Option < bool > ,
3033
31- /// Apply default position-sensitive system tests and context-sensitive system tests to the file.
32- #[ arg( short = 'd' , long) ]
34+ #[ arg(
35+ short = 'd' ,
36+ long,
37+ help = gettext(
38+ "Apply default position-sensitive system tests and context-sensitive system tests to the file"
39+ )
40+ ) ]
3341 default_tests : bool ,
3442
35- /// Identify symbolic link with non existent file as symbolic link
36- #[ arg( short = 'h' , long) ]
43+ #[ arg(
44+ short = 'h' ,
45+ long,
46+ help = gettext( "Identify symbolic link with non existent file as symbolic link" )
47+ ) ]
3748 identify_as_symbolic_link : bool ,
3849
39- /// Don't perform further classification on regular file
40- #[ arg( short = 'i' , long) ]
50+ #[ arg(
51+ short = 'i' ,
52+ long,
53+ help = gettext( "Don't perform further classification on regular file" )
54+ ) ]
4155 no_further_file_classification : bool ,
4256
43- /// File containing position-sensitive tests
44- #[ arg( short = 'm' ) ]
57+ #[ arg(
58+ short = 'm' ,
59+ help = gettext( "File containing position-sensitive tests" )
60+ ) ]
4561 test_file1 : Option < PathBuf > ,
4662
47- /// File containing additional position-sensitive tests
48- #[ arg( short = 'M' ) ]
63+ #[ arg(
64+ short = 'M' ,
65+ help = gettext( "File containing additional position-sensitive tests" )
66+ ) ]
4967 test_file2 : Option < PathBuf > ,
5068
5169 files : Vec < String > ,
0 commit comments