arch: move help strings to a markdown file (#4373)

Co-authored-by: zleyyij <zleyyi@users.noreply.github.com>
This commit is contained in:
zleyyij 2023-02-22 08:50:27 -07:00 committed by GitHub
parent 29a25a6c85
commit b70131f148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

14
src/uu/arch/arch.md Normal file
View file

@ -0,0 +1,14 @@
# arch
```
arch
```
Display machine architecture
## After Help
Determine architecture name for current machine.

View file

@ -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<()> {