From ad1954bd16f7c60eae3c764363cb3e8f027bb6d7 Mon Sep 17 00:00:00 2001 From: Tevfik Serhan Sekman Date: Sat, 12 Feb 2022 08:02:38 +0300 Subject: [PATCH] pr: add missing about and version to documentation --- src/uu/pr/src/pr.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/uu/pr/src/pr.rs b/src/uu/pr/src/pr.rs index 6282be454..c167770c0 100644 --- a/src/uu/pr/src/pr.rs +++ b/src/uu/pr/src/pr.rs @@ -32,6 +32,8 @@ type IOError = std::io::Error; const NAME: &str = "pr"; const VERSION: &str = env!("CARGO_PKG_VERSION"); +const ABOUT: &str = + "Write content of given file or standard input to standard output with pagination filter"; const TAB: char = '\t'; const LINES_PER_PAGE: usize = 66; const LINES_PER_PAGE_FOR_FORM_FEED: usize = 63; @@ -172,7 +174,10 @@ quick_error! { } pub fn uu_app<'a>() -> App<'a> { - App::new(uucore::util_name()).setting(AppSettings::InferLongArgs) + App::new(uucore::util_name()) + .version(VERSION) + .about(ABOUT) + .setting(AppSettings::InferLongArgs) } #[uucore::main]