mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #4549 from piotrkwiecinski/who-move-strings-to-md-file
who: move help strings to markdown file
This commit is contained in:
commit
fe4de86fb9
2 changed files with 11 additions and 3 deletions
|
@ -18,7 +18,7 @@ use std::ffi::CStr;
|
|||
use std::fmt::Write;
|
||||
use std::os::unix::fs::MetadataExt;
|
||||
use std::path::PathBuf;
|
||||
use uucore::format_usage;
|
||||
use uucore::{format_usage, help_about, help_usage};
|
||||
|
||||
mod options {
|
||||
pub const ALL: &str = "all";
|
||||
|
@ -38,8 +38,8 @@ mod options {
|
|||
pub const FILE: &str = "FILE"; // if length=1: FILE, if length=2: ARG1 ARG2
|
||||
}
|
||||
|
||||
static ABOUT: &str = "Print information about users who are currently logged in.";
|
||||
const USAGE: &str = "{} [OPTION]... [ FILE | ARG1 ARG2 ]";
|
||||
const ABOUT: &str = help_about!("who.md");
|
||||
const USAGE: &str = help_usage!("who.md");
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
static RUNLEVEL_HELP: &str = "print current runlevel";
|
||||
|
|
8
src/uu/who/who.md
Normal file
8
src/uu/who/who.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# who
|
||||
|
||||
```
|
||||
who [OPTION]... [ FILE | ARG1 ARG2 ]
|
||||
```
|
||||
|
||||
Print information about users who are currently logged in.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue