Merge pull request #4485 from papparapa/printenv-move-help-strings-to-md-file

printenv: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-09 17:36:44 +01:00 committed by GitHub
commit 510cafea8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 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 USAGE: &str = "{} [VARIABLE]... [OPTION]...";
const ABOUT: &str = help_about!("printenv.md");
const USAGE: &str = help_usage!("printenv.md");
static OPT_NULL: &str = "null";