mirror of
https://github.com/uutils/coreutils
synced 2024-12-15 07:42:48 +00:00
arch: move help strings to a markdown file (#4373)
Co-authored-by: zleyyij <zleyyi@users.noreply.github.com>
This commit is contained in:
parent
29a25a6c85
commit
b70131f148
2 changed files with 17 additions and 2 deletions
14
src/uu/arch/arch.md
Normal file
14
src/uu/arch/arch.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# arch
|
||||||
|
|
||||||
|
```
|
||||||
|
arch
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Display machine architecture
|
||||||
|
|
||||||
|
|
||||||
|
## After Help
|
||||||
|
|
||||||
|
Determine architecture name for current machine.
|
||||||
|
|
|
@ -10,9 +10,10 @@ use platform_info::*;
|
||||||
|
|
||||||
use clap::{crate_version, Command};
|
use clap::{crate_version, Command};
|
||||||
use uucore::error::{FromIo, UResult};
|
use uucore::error::{FromIo, UResult};
|
||||||
|
use uucore::{help_about, help_section};
|
||||||
|
|
||||||
static ABOUT: &str = "Display machine architecture";
|
static ABOUT: &str = help_about!("arch.md");
|
||||||
static SUMMARY: &str = "Determine architecture name for current machine.";
|
static SUMMARY: &str = help_section!("after help", "arch.md");
|
||||||
|
|
||||||
#[uucore::main]
|
#[uucore::main]
|
||||||
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||||
|
|
Loading…
Reference in a new issue