| 1392 | } |
| 1393 | |
| 1394 | void |
| 1395 | usage (int status) |
| 1396 | { |
| 1397 | if (status != EXIT_SUCCESS) |
| 1398 | emit_try_help (); |
| 1399 | else |
| 1400 | { |
| 1401 | printf (_("\ |
| 1402 | Usage: %s [OPTION]... FILE PATTERN...\n\ |
| 1403 | "), |
| 1404 | program_name); |
| 1405 | fputs (_("\ |
| 1406 | Output pieces of FILE separated by PATTERN(s) to files 'xx00', 'xx01', ...,\n\ |
| 1407 | and output byte counts of each piece to standard output.\n\ |
| 1408 | "), stdout); |
| 1409 | fputs (_("\ |
| 1410 | \n\ |
| 1411 | Read standard input if FILE is -\n\ |
| 1412 | "), stdout); |
| 1413 | |
| 1414 | emit_mandatory_arg_note (); |
| 1415 | |
| 1416 | oputs (_("\ |
| 1417 | -b, --suffix-format=FORMAT\n\ |
| 1418 | use sprintf FORMAT instead of %02d\n\ |
| 1419 | ")); |
| 1420 | oputs (_("\ |
| 1421 | -f, --prefix=PREFIX\n\ |
| 1422 | use PREFIX instead of 'xx'\n\ |
| 1423 | ")); |
| 1424 | oputs (_("\ |
| 1425 | -k, --keep-files\n\ |
| 1426 | do not remove output files on errors\n\ |
| 1427 | ")); |
| 1428 | oputs (_("\ |
| 1429 | --suppress-matched\n\ |
| 1430 | suppress the lines matching PATTERN\n\ |
| 1431 | ")); |
| 1432 | oputs (_("\ |
| 1433 | -n, --digits=DIGITS\n\ |
| 1434 | use specified number of digits instead of 2\n\ |
| 1435 | ")); |
| 1436 | oputs (_("\ |
| 1437 | -s, --quiet, --silent\n\ |
| 1438 | do not print counts of output file sizes\n\ |
| 1439 | ")); |
| 1440 | oputs (_("\ |
| 1441 | -z, --elide-empty-files\n\ |
| 1442 | suppress empty output files\n\ |
| 1443 | ")); |
| 1444 | oputs (HELP_OPTION_DESCRIPTION); |
| 1445 | oputs (VERSION_OPTION_DESCRIPTION); |
| 1446 | fputs (_("\ |
| 1447 | \n\ |
| 1448 | Each PATTERN may be:\n\ |
| 1449 | INTEGER copy up to but not including specified line number\n\ |
| 1450 | /REGEXP/[OFFSET] copy up to but not including a matching line\n\ |
| 1451 | %REGEXP%[OFFSET] skip to, but not including a matching line\n\ |
no test coverage detected