MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/id.c:87–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87void
88usage (int status)
89{
90 if (status != EXIT_SUCCESS)
91 emit_try_help ();
92 else
93 {
94 printf (_("Usage: %s [OPTION]... [USER]...\n"), program_name);
95 fputs (_("\
96Print user and group information for each specified USER,\n\
97or (when USER omitted) for the current process.\n\
98\n"),
99 stdout);
100 oputs (_("\
101 -a\n\
102 ignore, for compatibility with other versions\n\
103"));
104 oputs (_("\
105 -Z, --context\n\
106 print only the security context of the process\n\
107"));
108 oputs (_("\
109 -g, --group\n\
110 print only the effective group ID\n\
111"));
112 oputs (_("\
113 -G, --groups\n\
114 print all group IDs\n\
115"));
116 oputs (_("\
117 -n, --name\n\
118 print a name instead of a number, for -u,-g,-G\n\
119"));
120 oputs (_("\
121 -r, --real\n\
122 print the real ID instead of the effective ID, with -u,-g,-G\n\
123"));
124 oputs (_("\
125 -u, --user\n\
126 print only the effective user ID\n\
127"));
128 oputs (_("\
129 -z, --zero\n\
130 delimit entries with NUL characters, not whitespace;\n\
131 not permitted in default format\n\
132"));
133 oputs (HELP_OPTION_DESCRIPTION);
134 oputs (VERSION_OPTION_DESCRIPTION);
135 fputs (_("\
136\n\
137Without any OPTION, print some useful set of identified information.\n\
138"), stdout);
139 emit_ancillary_info (PROGRAM_NAME);
140 }
141 exit (status);
142}
143
144int

Callers 4

x_timestyle_matchFunction · 0.70
mainFunction · 0.70
set_fieldsFunction · 0.70
cksum.cFile · 0.70

Calls 1

emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected