| 244 | } |
| 245 | |
| 246 | void |
| 247 | usage (int status) |
| 248 | { |
| 249 | if (status != EXIT_SUCCESS) |
| 250 | emit_try_help (); |
| 251 | else |
| 252 | { |
| 253 | printf (_("\ |
| 254 | Usage: %s [OPTION]... [-T] SOURCE DEST\n\ |
| 255 | or: %s [OPTION]... SOURCE... DIRECTORY\n\ |
| 256 | or: %s [OPTION]... -t DIRECTORY SOURCE...\n\ |
| 257 | "), |
| 258 | program_name, program_name, program_name); |
| 259 | fputs (_("\ |
| 260 | Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n\ |
| 261 | "), stdout); |
| 262 | |
| 263 | emit_mandatory_arg_note (); |
| 264 | |
| 265 | oputs (_("\ |
| 266 | --backup[=CONTROL]\n\ |
| 267 | make a backup of each existing destination file\n\ |
| 268 | ")); |
| 269 | oputs (_("\ |
| 270 | -b\n\ |
| 271 | like --backup but does not accept an argument\n\ |
| 272 | ")); |
| 273 | oputs (_("\ |
| 274 | --debug\n\ |
| 275 | explain how a file is copied. Implies -v\n\ |
| 276 | ")); |
| 277 | oputs (_("\ |
| 278 | --exchange\n\ |
| 279 | exchange source and destination\n\ |
| 280 | ")); |
| 281 | oputs (_("\ |
| 282 | -f, --force\n\ |
| 283 | do not prompt before overwriting\n\ |
| 284 | ")); |
| 285 | oputs (_("\ |
| 286 | -i, --interactive\n\ |
| 287 | prompt before overwrite\n\ |
| 288 | ")); |
| 289 | oputs (_("\ |
| 290 | -n, --no-clobber\n\ |
| 291 | do not overwrite an existing file\n\ |
| 292 | ")); |
| 293 | fputs (_("\ |
| 294 | If you specify more than one of -i, -f, -n, only the final one takes effect.\n\ |
| 295 | "), stdout); |
| 296 | oputs (_("\ |
| 297 | --no-copy\n\ |
| 298 | do not copy if renaming fails\n\ |
| 299 | ")); |
| 300 | oputs (_("\ |
| 301 | --strip-trailing-slashes\n\ |
| 302 | remove any trailing slashes from each SOURCE argument\n\ |
| 303 | ")); |
no test coverage detected