| 84 | static bool pending_cr = false; |
| 85 | |
| 86 | void |
| 87 | usage (int status) |
| 88 | { |
| 89 | if (status != EXIT_SUCCESS) |
| 90 | emit_try_help (); |
| 91 | else |
| 92 | { |
| 93 | printf (_("\ |
| 94 | Usage: %s [OPTION]... [FILE]...\n\ |
| 95 | "), |
| 96 | program_name); |
| 97 | fputs (_("\ |
| 98 | Concatenate FILE(s) to standard output.\n\ |
| 99 | "), stdout); |
| 100 | |
| 101 | emit_stdin_note (); |
| 102 | |
| 103 | oputs (_("\ |
| 104 | -A, --show-all equivalent to -vET\n\ |
| 105 | ")); |
| 106 | oputs (_("\ |
| 107 | -b, --number-nonblank number nonempty output lines, overrides -n\n\ |
| 108 | ")); |
| 109 | oputs (_("\ |
| 110 | -e equivalent to -vE\n\ |
| 111 | ")); |
| 112 | oputs (_("\ |
| 113 | -E, --show-ends display $ or ^M$ at end of each line\n\ |
| 114 | ")); |
| 115 | oputs (_("\ |
| 116 | -n, --number number all output lines\n\ |
| 117 | ")); |
| 118 | oputs (_("\ |
| 119 | -s, --squeeze-blank suppress repeated empty output lines\n\ |
| 120 | ")); |
| 121 | oputs (_("\ |
| 122 | -t equivalent to -vT\n\ |
| 123 | ")); |
| 124 | oputs (_("\ |
| 125 | -T, --show-tabs display TAB characters as ^I\n\ |
| 126 | ")); |
| 127 | oputs (_("\ |
| 128 | -u (ignored)\n\ |
| 129 | ")); |
| 130 | oputs (_("\ |
| 131 | -v, --show-nonprinting use ^ and M- notation, except for LFD and TAB\n\ |
| 132 | ")); |
| 133 | oputs (HELP_OPTION_DESCRIPTION); |
| 134 | oputs (VERSION_OPTION_DESCRIPTION); |
| 135 | printf (_("\ |
| 136 | \n\ |
| 137 | Examples:\n\ |
| 138 | %s f - g Output f's contents, then standard input, then g's contents.\n\ |
| 139 | %s Copy standard input to standard output.\n\ |
| 140 | "), |
| 141 | program_name, program_name); |
| 142 | emit_ancillary_info (PROGRAM_NAME); |
| 143 | } |
no test coverage detected