| 180 | #endif |
| 181 | |
| 182 | void |
| 183 | usage (int status) |
| 184 | { |
| 185 | if (status != EXIT_SUCCESS) |
| 186 | emit_try_help (); |
| 187 | else |
| 188 | { |
| 189 | printf (_("\ |
| 190 | Usage: %s [OPTION]... [FILE]...\n\ |
| 191 | or: %s [OPTION]... --files0-from=F\n\ |
| 192 | "), |
| 193 | program_name, program_name); |
| 194 | fputs (_("\ |
| 195 | Print newline, word, and byte counts for each FILE, and a total line if\n\ |
| 196 | more than one FILE is specified. A word is a nonempty sequence of non white\n\ |
| 197 | space delimited by white space characters or by start or end of input.\n\ |
| 198 | "), stdout); |
| 199 | |
| 200 | emit_stdin_note (); |
| 201 | |
| 202 | fputs (_("\ |
| 203 | \n\ |
| 204 | The options below may be used to select which counts are printed, always in\n\ |
| 205 | the following order: newline, word, character, byte, maximum line length.\n\ |
| 206 | "), stdout); |
| 207 | oputs (_("\ |
| 208 | -c, --bytes\n\ |
| 209 | print the byte counts\n\ |
| 210 | ")); |
| 211 | oputs (_("\ |
| 212 | -m, --chars\n\ |
| 213 | print the character counts\n\ |
| 214 | ")); |
| 215 | oputs (_("\ |
| 216 | -l, --lines\n\ |
| 217 | print the newline counts\n\ |
| 218 | ")); |
| 219 | oputs (_("\ |
| 220 | --debug\n\ |
| 221 | indicate what line count acceleration is used\n\ |
| 222 | ")); |
| 223 | oputs (_("\ |
| 224 | --files0-from=F\n\ |
| 225 | read input from the files specified by\n\ |
| 226 | NUL-terminated names in file F;\n\ |
| 227 | If F is -, read names from standard input\n\ |
| 228 | ")); |
| 229 | oputs (_("\ |
| 230 | -L, --max-line-length\n\ |
| 231 | print the maximum display width\n\ |
| 232 | ")); |
| 233 | oputs (_("\ |
| 234 | -w, --words\n\ |
| 235 | print the word counts\n\ |
| 236 | ")); |
| 237 | oputs (_("\ |
| 238 | --total=WHEN\n\ |
| 239 | when to print a line with total counts;\n\ |
no test coverage detected