]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
newgrp: provide --command info in output message
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 25 Dec 2025 05:51:31 +0000 (00:51 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 1 Jan 2026 03:50:02 +0000 (22:50 -0500)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
login-utils/newgrp.c

index ba3777b36c4dd25eb690e4a7159de53dae84b5e7..2bb4b55812bd137328eb40ee870894947791d14a 100644 (file)
@@ -178,7 +178,10 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_("Log in to a new group; optionally executing a shell command.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       fprintf(out, USAGE_HELP_OPTIONS(16));
+       fputs(_(" -c, --command <command>  pass a command to the user's shell with -c\n"), out);
+
+       fputs(USAGE_SEPARATOR, out);
+       fprintf(out, USAGE_HELP_OPTIONS(26));
        fprintf(out, USAGE_MAN_TAIL("newgrp(1)"));
        exit(EXIT_SUCCESS);
 }