| 122 | } |
| 123 | |
| 124 | void |
| 125 | usage (int status) |
| 126 | { |
| 127 | if (status != EXIT_SUCCESS) |
| 128 | emit_try_help (); |
| 129 | else |
| 130 | { |
| 131 | printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name); |
| 132 | fputs (_("\ |
| 133 | Remove (unlink) the FILE(s).\n\ |
| 134 | \n\ |
| 135 | "), stdout); |
| 136 | oputs (_("\ |
| 137 | -f, --force\n\ |
| 138 | ignore nonexistent files and arguments, never prompt\n\ |
| 139 | ")); |
| 140 | oputs (_("\ |
| 141 | -i\n\ |
| 142 | prompt before every removal\n\ |
| 143 | ")); |
| 144 | oputs (_("\ |
| 145 | -I\n\ |
| 146 | prompt once before removing more than three files,\n\ |
| 147 | or when removing recursively; less intrusive than -i,\n\ |
| 148 | while still giving protection against most mistakes\n\ |
| 149 | ")); |
| 150 | oputs (_("\ |
| 151 | --interactive[=WHEN]\n\ |
| 152 | prompt according to WHEN: never, once (-I), or always (-i);\n\ |
| 153 | without WHEN, prompt always\n\ |
| 154 | ")); |
| 155 | oputs (_("\ |
| 156 | --one-file-system\n\ |
| 157 | when removing a hierarchy recursively,\n\ |
| 158 | skip any directory that is on a file system different\n\ |
| 159 | from that of the corresponding command line argument\n\ |
| 160 | ")); |
| 161 | oputs (_("\ |
| 162 | --no-preserve-root\n\ |
| 163 | do not treat '/' specially\n\ |
| 164 | ")); |
| 165 | oputs (_("\ |
| 166 | --preserve-root[=all]\n\ |
| 167 | do not remove '/' (default);\n\ |
| 168 | with 'all', reject any command line argument\n\ |
| 169 | on a separate device from its parent\n\ |
| 170 | ")); |
| 171 | oputs (_("\ |
| 172 | -r, -R, --recursive\n\ |
| 173 | remove directories and their contents recursively\n\ |
| 174 | ")); |
| 175 | oputs (_("\ |
| 176 | -d, --dir\n\ |
| 177 | remove empty directories\n\ |
| 178 | ")); |
| 179 | oputs (_("\ |
| 180 | -v, --verbose\n\ |
| 181 | explain what is being done\n\ |
no test coverage detected