mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
uname: move help strings to a markdown file
This commit is contained in:
parent
8f623464ce
commit
0bb557bf25
2 changed files with 12 additions and 4 deletions
|
@ -14,12 +14,11 @@ use clap::{crate_version, Arg, ArgAction, Command};
|
|||
use platform_info::*;
|
||||
use uucore::{
|
||||
error::{FromIo, UResult},
|
||||
format_usage,
|
||||
format_usage, help_about, help_usage,
|
||||
};
|
||||
|
||||
const ABOUT: &str = r#"Print certain system information.
|
||||
With no OPTION, same as -s."#;
|
||||
const USAGE: &str = "{} [OPTION]...";
|
||||
const ABOUT: &str = help_about!("uname.md");
|
||||
const USAGE: &str = help_usage!("uname.md");
|
||||
|
||||
pub mod options {
|
||||
pub static ALL: &str = "all";
|
||||
|
|
9
src/uu/uname/uname.md
Normal file
9
src/uu/uname/uname.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# uname
|
||||
|
||||
|
||||
```
|
||||
uname [OPTION]...
|
||||
```
|
||||
|
||||
Print certain system information.
|
||||
With no OPTION, same as -s.
|
Loading…
Add table
Add a link
Reference in a new issue