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

Function usage

src/cp.c:153–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151};
152
153void
154usage (int status)
155{
156 if (status != EXIT_SUCCESS)
157 emit_try_help ();
158 else
159 {
160 printf (_("\
161Usage: %s [OPTION]... [-T] SOURCE DEST\n\
162 or: %s [OPTION]... SOURCE... DIRECTORY\n\
163 or: %s [OPTION]... -t DIRECTORY SOURCE...\n\
164"),
165 program_name, program_name, program_name);
166 fputs (_("\
167Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n\
168"), stdout);
169
170 emit_mandatory_arg_note ();
171
172 oputs (_("\
173 -a, --archive\n\
174 same as -dR --preserve=all\n\
175"));
176 oputs (_("\
177 --attributes-only\n\
178 don't copy the file data, just the attributes\n\
179"));
180 oputs (_("\
181 --backup[=CONTROL]\n\
182 make a backup of each existing destination file\n\
183"));
184 oputs (_("\
185 -b\n\
186 like --backup but does not accept an argument\n\
187"));
188 oputs (_("\
189 --copy-contents\n\
190 copy contents of special files when recursive\n\
191"));
192 oputs (_("\
193 -d\n\
194 same as --no-dereference --preserve=links\n\
195"));
196 oputs (_("\
197 --debug\n\
198 explain how a file is copied. Implies -v\n\
199"));
200 oputs (_("\
201 -f, --force\n\
202 if an existing destination file cannot be opened, remove it and try\n\
203 again (this option is ignored when the -n option is also used)\n\
204"));
205 oputs (_("\
206 -i, --interactive\n\
207 prompt before overwrite (overrides a previous -n option)\n\
208"));
209 oputs (_("\
210 -H\n\

Callers 2

do_copyFunction · 0.70
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