1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

who: move help strings to markdown file

This commit is contained in:
Piotr Kwiecinski 2023-03-19 11:59:14 +01:00
parent 7053543830
commit 0ca5020b08
2 changed files with 11 additions and 3 deletions

View file

@ -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
View file

@ -0,0 +1,8 @@
# who
```
who [OPTION]... [ FILE | ARG1 ARG2 ]
```
Print information about users who are currently logged in.