mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 20:47:46 +00:00
Merge pull request #3121 from serhansekman/pr-help-page
pr: add missing about and version to documentation
This commit is contained in:
commit
c67a64c9df
1 changed files with 6 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue