@@ -42,6 +42,7 @@ mod options {
4242 pub const FIRST_LINE_NUMBER : & str = "first-line-number" ;
4343 pub const PAGES : & str = "pages" ;
4444 pub const OMIT_HEADER : & str = "omit-header" ;
45+ pub const OMIT_PAGINATION : & str = "omit-pagination" ;
4546 pub const PAGE_LENGTH : & str = "length" ;
4647 pub const NO_FILE_WARNINGS : & str = "no-file-warnings" ;
4748 pub const FORM_FEED : & str = "form-feed" ;
@@ -215,6 +216,13 @@ pub fn uu_app() -> Command {
215216 . help ( translate ! ( "pr-help-omit-header" ) )
216217 . action ( ArgAction :: SetTrue ) ,
217218 )
219+ . arg (
220+ Arg :: new ( options:: OMIT_PAGINATION )
221+ . short ( 'T' )
222+ . long ( options:: OMIT_PAGINATION )
223+ . help ( translate ! ( "pr-help-omit-pagination" ) )
224+ . action ( ArgAction :: SetTrue ) ,
225+ )
218226 . arg (
219227 Arg :: new ( options:: PAGE_LENGTH )
220228 . short ( 'l' )
@@ -633,7 +641,9 @@ fn build_options(
633641
634642 let page_length_le_ht = page_length < ( HEADER_LINES_PER_PAGE + TRAILER_LINES_PER_PAGE ) ;
635643
636- let display_header_and_trailer = !page_length_le_ht && !matches. get_flag ( options:: OMIT_HEADER ) ;
644+ let display_header_and_trailer = !page_length_le_ht
645+ && !matches. get_flag ( options:: OMIT_HEADER )
646+ && !matches. get_flag ( options:: OMIT_PAGINATION ) ;
637647
638648 let content_lines_per_page = if page_length_le_ht {
639649 page_length
0 commit comments