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

Function usage

src/install.c:587–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585}
586
587void
588usage (int status)
589{
590 if (status != EXIT_SUCCESS)
591 emit_try_help ();
592 else
593 {
594 printf (_("\
595Usage: %s [OPTION]... [-T] SOURCE DEST\n\
596 or: %s [OPTION]... SOURCE... DIRECTORY\n\
597 or: %s [OPTION]... -t DIRECTORY SOURCE...\n\
598 or: %s [OPTION]... -d DIRECTORY...\n\
599"),
600 program_name, program_name, program_name, program_name);
601 fputs (_("\
602\n\
603This install program copies files (often just compiled) into destination\n\
604locations you choose. If you want to download and install a ready-to-use\n\
605package on a GNU/Linux system, you should instead be using a package manager\n\
606like yum(1) or apt-get(1).\n\
607\n\
608In the first three forms, copy SOURCE to DEST or multiple SOURCE(s) to\n\
609the existing DIRECTORY, while setting permission modes and owner/group.\n\
610In the 4th form, create all components of the given DIRECTORY(ies).\n\
611"), stdout);
612
613 emit_mandatory_arg_note ();
614
615 oputs (_("\
616 --backup[=CONTROL]\n\
617 make a backup of each existing destination file\n\
618"));
619 oputs (_("\
620 -b\n\
621 like --backup but does not accept an argument\n\
622"));
623 oputs (_("\
624 -c\n\
625 (ignored)\n\
626"));
627 oputs (_("\
628 -C, --compare\n\
629 compare content of source and destination files,\n\
630 and if no change to content, ownership, and permissions,\n\
631 do not modify the destination at all\n\
632"));
633 oputs (_("\
634 -d, --directory\n\
635 treat all arguments as directory names;\n\
636 create all components of the specified directories\n\
637"));
638 oputs (_("\
639 -D\n\
640 create all leading components of DEST except the last,\n\
641 or all components of --target-directory,\n\
642 then copy SOURCE to DEST\n\
643"));
644 oputs (_("\

Callers 1

mainFunction · 0.70

Calls 3

emit_mandatory_arg_noteFunction · 0.85
emit_backup_suffix_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected