mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
more: move help strings to markdown file
This commit is contained in:
parent
2db88f1f26
commit
d96aa3e098
2 changed files with 12 additions and 1 deletions
7
src/uu/more/more.md
Normal file
7
src/uu/more/more.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# more
|
||||
|
||||
```
|
||||
more [OPTIONS] <FILE>...
|
||||
```
|
||||
|
||||
A file perusal filter for CRT viewing.
|
|
@ -28,8 +28,11 @@ use unicode_segmentation::UnicodeSegmentation;
|
|||
use unicode_width::UnicodeWidthStr;
|
||||
use uucore::display::Quotable;
|
||||
use uucore::error::{UResult, USimpleError, UUsageError};
|
||||
use uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
const ABOUT: &str = help_about!("more.md");
|
||||
const BELL: &str = "\x07";
|
||||
const USAGE: &str = help_usage!("more.md");
|
||||
|
||||
pub mod options {
|
||||
pub const SILENT: &str = "silent";
|
||||
|
@ -97,7 +100,8 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
|
||||
pub fn uu_app() -> Command {
|
||||
Command::new(uucore::util_name())
|
||||
.about("A file perusal filter for CRT viewing.")
|
||||
.about(ABOUT)
|
||||
.override_usage(format_usage(USAGE))
|
||||
.version(crate_version!())
|
||||
.infer_long_args(true)
|
||||
.arg(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue