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