mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-31 13:07:46 +00:00
Merge pull request #4570 from miles170/users-move-help-strings-to-md-file
users: move help strings to markdown file
This commit is contained in:
commit
d5588a28a5
2 changed files with 10 additions and 3 deletions
|
@ -14,11 +14,11 @@ use std::path::Path;
|
||||||
use clap::builder::ValueParser;
|
use clap::builder::ValueParser;
|
||||||
use clap::{crate_version, Arg, Command};
|
use clap::{crate_version, Arg, Command};
|
||||||
use uucore::error::UResult;
|
use uucore::error::UResult;
|
||||||
use uucore::format_usage;
|
|
||||||
use uucore::utmpx::{self, Utmpx};
|
use uucore::utmpx::{self, Utmpx};
|
||||||
|
use uucore::{format_usage, help_about, help_usage};
|
||||||
|
|
||||||
static ABOUT: &str = "Print the user names of users currently logged in to the current host";
|
const ABOUT: &str = help_about!("users.md");
|
||||||
const USAGE: &str = "{} [FILE]";
|
const USAGE: &str = help_usage!("users.md");
|
||||||
|
|
||||||
static ARG_FILES: &str = "files";
|
static ARG_FILES: &str = "files";
|
||||||
|
|
||||||
|
|
7
src/uu/users/users.md
Normal file
7
src/uu/users/users.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# users
|
||||||
|
|
||||||
|
```
|
||||||
|
users [FILE]
|
||||||
|
```
|
||||||
|
|
||||||
|
Print the user names of users currently logged in to the current host.
|
Loading…
Add table
Add a link
Reference in a new issue