mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
nl: move help strings to a markdown file (#4477)
This commit is contained in:
parent
db607eeffb
commit
7598404345
2 changed files with 10 additions and 3 deletions
7
src/uu/nl/nl.md
Normal file
7
src/uu/nl/nl.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#nl
|
||||||
|
|
||||||
|
```
|
||||||
|
nl [OPTION]... [FILE]...
|
||||||
|
```
|
||||||
|
|
||||||
|
Number lines of files
|
|
@ -14,12 +14,12 @@ use std::io::{stdin, BufRead, BufReader, Read};
|
||||||
use std::iter::repeat;
|
use std::iter::repeat;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use uucore::error::{FromIo, UResult, USimpleError};
|
use uucore::error::{FromIo, UResult, USimpleError};
|
||||||
use uucore::format_usage;
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
mod helper;
|
mod helper;
|
||||||
|
|
||||||
static ABOUT: &str = "Number lines of files";
|
static ABOUT: &str = help_about!("nl.md");
|
||||||
static USAGE: &str = "{} [OPTION]... [FILE]...";
|
static USAGE: &str = help_usage!("nl.md");
|
||||||
|
|
||||||
// Settings store options used by nl to produce its output.
|
// Settings store options used by nl to produce its output.
|
||||||
pub struct Settings {
|
pub struct Settings {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue