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

Function usage

src/chroot.c:178–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void
179usage (int status)
180{
181 if (status != EXIT_SUCCESS)
182 emit_try_help ();
183 else
184 {
185 printf (_("\
186Usage: %s [OPTION]... NEWROOT [COMMAND [ARG]...]\n"), program_name);
187
188 fputs (_("\
189Run COMMAND with root directory set to NEWROOT.\n\
190\n\
191"), stdout);
192
193 oputs (_("\
194 --groups=G_LIST\n\
195 specify supplementary groups as g1,g2,..,gN\n\
196"));
197 oputs (_("\
198 --userspec=USER:GROUP\n\
199 specify user and group (ID or name) to use\n\
200"));
201 oprintf (_("\
202 --skip-chdir\n\
203 do not change working directory to %s\n\
204"), quoteaf ("/"));
205
206 oputs (HELP_OPTION_DESCRIPTION);
207 oputs (VERSION_OPTION_DESCRIPTION);
208 fputs (_("\
209\n\
210If no command is given, run '\"$SHELL\" -i' (default: '/bin/sh -i').\n\
211"), stdout);
212 emit_exec_status (PROGRAM_NAME);
213 emit_ancillary_info (PROGRAM_NAME);
214 }
215 exit (status);
216}
217
218int
219main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 2

emit_exec_statusFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected