1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

pathchk: move help strings to markdown file

This commit is contained in:
Piotr Kwiecinski 2023-03-27 11:23:00 +02:00
parent 5d4258135b
commit b5bf6edafb
2 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1,7 @@
# pathchk
```
pathchk [OPTION]... NAME...
```
Check whether file names are valid or portable

View file

@ -13,7 +13,7 @@ use std::fs;
use std::io::{ErrorKind, Write};
use uucore::display::Quotable;
use uucore::error::{set_exit_code, UResult, UUsageError};
use uucore::format_usage;
use uucore::{format_usage, help_about, help_usage};
// operating mode
enum Mode {
@ -23,8 +23,8 @@ enum Mode {
Both, // a combination of `Basic` and `Extra`
}
static ABOUT: &str = "Check whether file names are valid or portable";
const USAGE: &str = "{} [OPTION]... NAME...";
const ABOUT: &str = help_about!("pathchk.md");
const USAGE: &str = help_usage!("pathchk.md");
mod options {
pub const POSIX: &str = "posix";