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

Function usage

src/mv.c:246–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246void
247usage (int status)
248{
249 if (status != EXIT_SUCCESS)
250 emit_try_help ();
251 else
252 {
253 printf (_("\
254Usage: %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 (_("\
260Rename 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 (_("\
294If 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"));

Callers 1

mainFunction · 0.70

Calls 4

emit_mandatory_arg_noteFunction · 0.85
emit_backup_suffix_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected