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

Function usage

src/rmdir.c:165–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void
166usage (int status)
167{
168 if (status != EXIT_SUCCESS)
169 emit_try_help ();
170 else
171 {
172 printf (_("Usage: %s [OPTION]... DIRECTORY...\n"), program_name);
173 fputs (_("\
174Remove the DIRECTORY(ies), if they are empty.\n\
175\n\
176"), stdout);
177 oputs (_("\
178 --ignore-fail-on-non-empty\n\
179 ignore each failure to remove a non-empty directory\n\
180"));
181 oputs (_("\
182 -p, --parents\n\
183 remove DIRECTORY and its ancestors;\n\
184 e.g., 'rmdir -p a/b' is similar to 'rmdir a/b a'\n\
185"));
186 oputs (_("\
187 -v, --verbose\n\
188 output a diagnostic for every directory processed\n\
189"));
190 oputs (HELP_OPTION_DESCRIPTION);
191 oputs (VERSION_OPTION_DESCRIPTION);
192 emit_ancillary_info (PROGRAM_NAME);
193 }
194 exit (status);
195}
196
197int
198main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 1

emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected