| 78 | ARGMATCH_VERIFY (output_error_args, output_error_types); |
| 79 | |
| 80 | void |
| 81 | usage (int status) |
| 82 | { |
| 83 | if (status != EXIT_SUCCESS) |
| 84 | emit_try_help (); |
| 85 | else |
| 86 | { |
| 87 | printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name); |
| 88 | fputs (_("\ |
| 89 | Copy standard input to each FILE, and also to standard output.\n\ |
| 90 | \n\ |
| 91 | "), stdout); |
| 92 | oputs (_("\ |
| 93 | -a, --append\n\ |
| 94 | append to the given FILEs, do not overwrite\n\ |
| 95 | ")); |
| 96 | oputs (_("\ |
| 97 | -i, --ignore-interrupts\n\ |
| 98 | ignore interrupt signals\n\ |
| 99 | ")); |
| 100 | oputs (_("\ |
| 101 | -p\n\ |
| 102 | operate in a more appropriate MODE with pipes\n\ |
| 103 | ")); |
| 104 | oputs (_("\ |
| 105 | --output-error[=MODE]\n\ |
| 106 | set behavior on write error. See MODE below\n\ |
| 107 | ")); |
| 108 | oputs (HELP_OPTION_DESCRIPTION); |
| 109 | oputs (VERSION_OPTION_DESCRIPTION); |
| 110 | fputs (_("\ |
| 111 | \n\ |
| 112 | MODE determines behavior with write errors on the outputs:\n\ |
| 113 | warn diagnose errors writing to any output\n\ |
| 114 | warn-nopipe diagnose errors writing to any output not a pipe\n\ |
| 115 | exit exit on error writing to any output\n\ |
| 116 | exit-nopipe exit on error writing to any output not a pipe\n\ |
| 117 | The default MODE for the -p option is 'warn-nopipe'.\n\ |
| 118 | With \"nopipe\" MODEs, exit immediately if all outputs become broken pipes.\n\ |
| 119 | The default operation when --output-error is not specified, is to\n\ |
| 120 | exit immediately on error writing to a pipe, and diagnose errors\n\ |
| 121 | writing to non pipe outputs.\n\ |
| 122 | "), stdout); |
| 123 | emit_ancillary_info (PROGRAM_NAME); |
| 124 | } |
| 125 | exit (status); |
| 126 | } |
| 127 | |
| 128 | int |
| 129 | main (int argc, char **argv) |
no test coverage detected