nl: move help strings to a markdown file (#4477)

This commit is contained in:
wuseyu
2023-03-09 10:42:39 +01:00
committed by GitHub
parent db607eeffb
commit 7598404345
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
#nl
```
nl [OPTION]... [FILE]...
```
Number lines of files
+3 -3
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 {