@@ -24,22 +24,22 @@ const USAGE: &str = help_usage!("tail.md");
24
24
25
25
pub mod options {
26
26
pub mod verbosity {
27
- pub static QUIET : & str = "quiet" ;
28
- pub static VERBOSE : & str = "verbose" ;
27
+ pub const QUIET : & str = "quiet" ;
28
+ pub const VERBOSE : & str = "verbose" ;
29
29
}
30
- pub static BYTES : & str = "bytes" ;
31
- pub static FOLLOW : & str = "follow" ;
32
- pub static LINES : & str = "lines" ;
33
- pub static PID : & str = "pid" ;
34
- pub static SLEEP_INT : & str = "sleep-interval" ;
35
- pub static ZERO_TERM : & str = "zero-terminated" ;
36
- pub static DISABLE_INOTIFY_TERM : & str = "-disable-inotify" ; // NOTE: three hyphens is correct
37
- pub static USE_POLLING : & str = "use-polling" ;
38
- pub static RETRY : & str = "retry" ;
39
- pub static FOLLOW_RETRY : & str = "F" ;
40
- pub static MAX_UNCHANGED_STATS : & str = "max-unchanged-stats" ;
41
- pub static ARG_FILES : & str = "files" ;
42
- pub static PRESUME_INPUT_PIPE : & str = "-presume-input-pipe" ; // NOTE: three hyphens is correct
30
+ pub const BYTES : & str = "bytes" ;
31
+ pub const FOLLOW : & str = "follow" ;
32
+ pub const LINES : & str = "lines" ;
33
+ pub const PID : & str = "pid" ;
34
+ pub const SLEEP_INT : & str = "sleep-interval" ;
35
+ pub const ZERO_TERM : & str = "zero-terminated" ;
36
+ pub const DISABLE_INOTIFY_TERM : & str = "-disable-inotify" ; // NOTE: three hyphens is correct
37
+ pub const USE_POLLING : & str = "use-polling" ;
38
+ pub const RETRY : & str = "retry" ;
39
+ pub const FOLLOW_RETRY : & str = "F" ;
40
+ pub const MAX_UNCHANGED_STATS : & str = "max-unchanged-stats" ;
41
+ pub const ARG_FILES : & str = "files" ;
42
+ pub const PRESUME_INPUT_PIPE : & str = "-presume-input-pipe" ; // NOTE: three hyphens is correct
43
43
}
44
44
45
45
#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
@@ -470,12 +470,11 @@ pub fn parse_args(args: impl uucore::Args) -> UResult<Settings> {
470
470
471
471
pub fn uu_app ( ) -> Command {
472
472
#[ cfg( target_os = "linux" ) ]
473
- pub static POLLING_HELP : & str = "Disable 'inotify' support and use polling instead" ;
473
+ const POLLING_HELP : & str = "Disable 'inotify' support and use polling instead" ;
474
474
#[ cfg( all( unix, not( target_os = "linux" ) ) ) ]
475
- pub static POLLING_HELP : & str = "Disable 'kqueue' support and use polling instead" ;
475
+ const POLLING_HELP : & str = "Disable 'kqueue' support and use polling instead" ;
476
476
#[ cfg( target_os = "windows" ) ]
477
- pub static POLLING_HELP : & str =
478
- "Disable 'ReadDirectoryChanges' support and use polling instead" ;
477
+ const POLLING_HELP : & str = "Disable 'ReadDirectoryChanges' support and use polling instead" ;
479
478
480
479
Command :: new ( uucore:: util_name ( ) )
481
480
. version ( crate_version ! ( ) )
0 commit comments