mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 04:27:45 +00:00
Merge pull request #4651 from piotrkwiecinski/pathchk-move-string-to-md-file
pathchk: move help strings to markdown file
This commit is contained in:
commit
1926a24579
2 changed files with 10 additions and 3 deletions
7
src/uu/pathchk/pathchk.md
Normal file
7
src/uu/pathchk/pathchk.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# pathchk
|
||||||
|
|
||||||
|
```
|
||||||
|
pathchk [OPTION]... NAME...
|
||||||
|
```
|
||||||
|
|
||||||
|
Check whether file names are valid or portable
|
|
@ -13,7 +13,7 @@ use std::fs;
|
||||||
use std::io::{ErrorKind, Write};
|
use std::io::{ErrorKind, Write};
|
||||||
use uucore::display::Quotable;
|
use uucore::display::Quotable;
|
||||||
use uucore::error::{set_exit_code, UResult, UUsageError};
|
use uucore::error::{set_exit_code, UResult, UUsageError};
|
||||||
use uucore::format_usage;
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
// operating mode
|
// operating mode
|
||||||
enum Mode {
|
enum Mode {
|
||||||
|
@ -23,8 +23,8 @@ enum Mode {
|
||||||
Both, // a combination of `Basic` and `Extra`
|
Both, // a combination of `Basic` and `Extra`
|
||||||
}
|
}
|
||||||
|
|
||||||
static ABOUT: &str = "Check whether file names are valid or portable";
|
const ABOUT: &str = help_about!("pathchk.md");
|
||||||
const USAGE: &str = "{} [OPTION]... NAME...";
|
const USAGE: &str = help_usage!("pathchk.md");
|
||||||
|
|
||||||
mod options {
|
mod options {
|
||||||
pub const POSIX: &str = "posix";
|
pub const POSIX: &str = "posix";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue