| 163 | } |
| 164 | |
| 165 | void |
| 166 | usage (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 (_("\ |
| 174 | Remove 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 | |
| 197 | int |
| 198 | main (int argc, char **argv) |
no test coverage detected