1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #4554 from piotrkwiecinski/groups-move-strings-to-md-files

groups: move help strings to markdown file
This commit is contained in:
Daniel Hofstetter 2023-03-20 08:19:05 +01:00 committed by GitHub
commit 47884d739b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 6 deletions

8
src/uu/groups/groups.md Normal file
View file

@ -0,0 +1,8 @@
# groups
```
groups [OPTION]... [USERNAME]...
```
Print group memberships for each `USERNAME` or, if no `USERNAME` is specified, for
the current process (which may differ if the groups database has changed).

View file

@ -21,7 +21,7 @@ use uucore::{
display::Quotable,
entries::{get_groups_gnu, gid2grp, Locate, Passwd},
error::{UError, UResult},
format_usage, show,
format_usage, help_about, help_usage, show,
};
use clap::{crate_version, Arg, ArgAction, Command};
@ -29,11 +29,8 @@ use clap::{crate_version, Arg, ArgAction, Command};
mod options {
pub const USERS: &str = "USERNAME";
}
static ABOUT: &str = "Print group memberships for each USERNAME or, \
if no USERNAME is specified, for\nthe current process \
(which may differ if the groups database has changed).";
const USAGE: &str = "{} [OPTION]... [USERNAME]...";
const ABOUT: &str = help_about!("groups.md");
const USAGE: &str = help_usage!("groups.md");
#[derive(Debug)]
enum GroupsError {