printenv: move help strings to markdown file

This commit is contained in:
Koki Ueha 2023-03-09 14:56:00 +00:00
parent 9f8cd4a7eb
commit e3d501fca1
2 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1,7 @@
# printenv
```
printenv [VARIABLE]... [OPTION]...
```
Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.

View file

@ -9,10 +9,10 @@
use clap::{crate_version, Arg, ArgAction, Command}; use clap::{crate_version, Arg, ArgAction, Command};
use std::env; use std::env;
use uucore::{error::UResult, format_usage}; use uucore::{error::UResult, format_usage, help_about, help_usage};
static ABOUT: &str = "Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all."; const ABOUT: &str = help_about!("printenv.md");
const USAGE: &str = "{} [VARIABLE]... [OPTION]..."; const USAGE: &str = help_usage!("printenv.md");
static OPT_NULL: &str = "null"; static OPT_NULL: &str = "null";