| 151 | }; |
| 152 | |
| 153 | void |
| 154 | usage (int status) |
| 155 | { |
| 156 | if (status != EXIT_SUCCESS) |
| 157 | emit_try_help (); |
| 158 | else |
| 159 | { |
| 160 | printf (_("\ |
| 161 | Usage: %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 (_("\ |
| 167 | Copy 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\ |
no test coverage detected