1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

ptx: move help strings to markdown file

This commit is contained in:
Chen Chi 2023-03-05 16:36:01 -08:00
parent 3ed26dc454
commit 68d68f04ed
2 changed files with 13 additions and 9 deletions

10
src/uu/ptx/ptx.md Normal file
View file

@ -0,0 +1,10 @@
# ptx
```
ptx [OPTION]... [INPUT]...
ptx -G [OPTION]... [INPUT [OUTPUT]]
```
Output a permuted index, including context, of the words in the input files.
Mandatory arguments to long options are mandatory for short options too.
With no FILE, or when FILE is -, read standard input. Default is '-F /'.

View file

@ -19,16 +19,10 @@ use std::io::{stdin, stdout, BufRead, BufReader, BufWriter, Read, Write};
use std::num::ParseIntError;
use uucore::display::Quotable;
use uucore::error::{FromIo, UError, UResult};
use uucore::format_usage;
use uucore::{format_usage, help_about, help_usage};
const USAGE: &str = "\
{} [OPTION]... [INPUT]...
{} -G [OPTION]... [INPUT [OUTPUT]]";
const ABOUT: &str = "\
Output a permuted index, including context, of the words in the input files. \n\n\
Mandatory arguments to long options are mandatory for short options too.\n\
With no FILE, or when FILE is -, read standard input. Default is '-F /'.";
const USAGE: &str = help_usage!("ptx.md");
const ABOUT: &str = help_about!("ptx.md");
const REGEX_CHARCLASS: &str = "^-]\\";