users: move help strings to markdown file

This commit is contained in:
Miles Liu 2023-03-22 11:19:50 +08:00
parent 0e4a15aa61
commit c1bd9e556e
No known key found for this signature in database
GPG key ID: 4DB9B32F9B24A7A9
2 changed files with 10 additions and 3 deletions

View file

@ -14,11 +14,11 @@ use std::path::Path;
use clap::builder::ValueParser;
use clap::{crate_version, Arg, Command};
use uucore::error::UResult;
use uucore::format_usage;
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 USAGE: &str = "{} [FILE]";
const ABOUT: &str = help_about!("users.md");
const USAGE: &str = help_usage!("users.md");
static ARG_FILES: &str = "files";

7
src/uu/users/users.md Normal file
View file

@ -0,0 +1,7 @@
# users
```
users [FILE]
```
Print the user names of users currently logged in to the current host.