1
Fork 0
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:
wuseyu 2023-03-09 17:42:39 +08:00 committed by GitHub
parent db607eeffb
commit 7598404345
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

7
src/uu/nl/nl.md Normal file
View file

@ -0,0 +1,7 @@
#nl
```
nl [OPTION]... [FILE]...
```
Number lines of files

View file

@ -14,12 +14,12 @@ use std::io::{stdin, BufRead, BufReader, Read};
use std::iter::repeat;
use std::path::Path;
use uucore::error::{FromIo, UResult, USimpleError};
use uucore::format_usage;
use uucore::{format_usage, help_about, help_usage};
mod helper;
static ABOUT: &str = "Number lines of files";
static USAGE: &str = "{} [OPTION]... [FILE]...";
static ABOUT: &str = help_about!("nl.md");
static USAGE: &str = help_usage!("nl.md");
// Settings store options used by nl to produce its output.
pub struct Settings {