@@ -38,6 +38,7 @@ pub mod options {
3838 pub const MAX_UNCHANGED_STATS : & str = "max-unchanged-stats" ;
3939 pub const ARG_FILES : & str = "files" ;
4040 pub const PRESUME_INPUT_PIPE : & str = "-presume-input-pipe" ; // NOTE: three hyphens is correct
41+ pub const DEBUG : & str = "debug" ;
4142}
4243
4344#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
@@ -139,6 +140,7 @@ pub struct Settings {
139140 pub use_polling : bool ,
140141 pub verbose : bool ,
141142 pub presume_input_pipe : bool ,
143+ pub debug : bool ,
142144 /// `FILE(s)` positional arguments
143145 pub inputs : Vec < Input > ,
144146}
@@ -155,6 +157,7 @@ impl Default for Settings {
155157 use_polling : Default :: default ( ) ,
156158 verbose : Default :: default ( ) ,
157159 presume_input_pipe : Default :: default ( ) ,
160+ debug : Default :: default ( ) ,
158161 inputs : Vec :: default ( ) ,
159162 }
160163 }
@@ -223,6 +226,7 @@ impl Settings {
223226 mode : FilterMode :: from ( matches) ?,
224227 verbose : matches. get_flag ( options:: verbosity:: VERBOSE ) ,
225228 presume_input_pipe : matches. get_flag ( options:: PRESUME_INPUT_PIPE ) ,
229+ debug : matches. get_flag ( options:: DEBUG ) ,
226230 ..Default :: default ( )
227231 } ;
228232
@@ -543,6 +547,12 @@ pub fn uu_app() -> Command {
543547 . overrides_with ( options:: FOLLOW_RETRY )
544548 . action ( ArgAction :: SetTrue ) ,
545549 )
550+ . arg (
551+ Arg :: new ( options:: DEBUG )
552+ . long ( options:: DEBUG )
553+ . help ( translate ! ( "tail-help-debug" ) )
554+ . action ( ArgAction :: SetTrue ) ,
555+ )
546556 . arg (
547557 Arg :: new ( options:: PRESUME_INPUT_PIPE )
548558 . long ( "presume-input-pipe" )
0 commit comments