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

feature(id): add --user, --group & --groups

This commit is contained in:
Sylvestre Ledru 2020-05-07 23:44:29 +02:00
parent 614bcde9ea
commit 90dfa70bd3

View file

@ -77,8 +77,8 @@ pub fn uumain(args: Vec<String>) -> i32 {
"",
"Display the process audit (not available on Linux)",
);
opts.optflag("G", "", "Display the different group IDs");
opts.optflag("g", "", "Display the effective group ID as a number");
opts.optflag("G", "groups", "Display the different group IDs");
opts.optflag("g", "group", "Display the effective group ID as a number");
opts.optflag(
"n",
"",
@ -87,7 +87,7 @@ pub fn uumain(args: Vec<String>) -> i32 {
opts.optflag("P", "", "Display the id as a password file entry");
opts.optflag("p", "", "Make the output human-readable");
opts.optflag("r", "", "Display the real ID for the -g and -u options");
opts.optflag("u", "", "Display the effective user ID as a number");
opts.optflag("u", "user", "Display the effective user ID as a number");
let matches = opts.parse(args);