| 2756 | /* Complain, print a usage message, and die. */ |
| 2757 | |
| 2758 | void |
| 2759 | usage (int status) |
| 2760 | { |
| 2761 | if (status != EXIT_SUCCESS) |
| 2762 | emit_try_help (); |
| 2763 | else |
| 2764 | { |
| 2765 | printf (_("\ |
| 2766 | Usage: %s [OPTION]... [FILE]...\n\ |
| 2767 | "), |
| 2768 | program_name); |
| 2769 | |
| 2770 | fputs (_("\ |
| 2771 | Paginate or columnate FILE(s) for printing.\n\ |
| 2772 | "), stdout); |
| 2773 | |
| 2774 | emit_stdin_note (); |
| 2775 | emit_mandatory_arg_note (); |
| 2776 | |
| 2777 | oputs (_("\n\ |
| 2778 | +FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]\n\ |
| 2779 | begin [stop] printing with page FIRST_[LAST_]PAGE\n\ |
| 2780 | ")); |
| 2781 | oputs (_("\ |
| 2782 | -COLS, --columns=COLS\n\ |
| 2783 | output COLS columns and print columns down, unless -a is used.\n\ |
| 2784 | Balance number of lines in the columns on each page\n\ |
| 2785 | ")); |
| 2786 | oputs (_("\ |
| 2787 | -a, --across\n\ |
| 2788 | print columns across rather than down, used together with -COLS\n\ |
| 2789 | ")); |
| 2790 | oputs (_("\ |
| 2791 | -c, --show-control-chars\n\ |
| 2792 | use hat notation (^G) and octal backslash notation\n\ |
| 2793 | ")); |
| 2794 | oputs (_("\ |
| 2795 | -d, --double-space\n\ |
| 2796 | double space the output\n\ |
| 2797 | ")); |
| 2798 | oputs (_("\ |
| 2799 | -D, --date-format=FORMAT\n\ |
| 2800 | use FORMAT for the header date\n\ |
| 2801 | ")); |
| 2802 | oputs (_("\ |
| 2803 | -e[CHAR[WIDTH]], --expand-tabs[=CHAR[WIDTH]]\n\ |
| 2804 | expand input CHARs (TABs) to tab WIDTH (8)\n\ |
| 2805 | ")); |
| 2806 | oputs (_("\ |
| 2807 | -F, -f, --form-feed\n\ |
| 2808 | use form feeds instead of newlines to separate pages\n\ |
| 2809 | (by a 3-line page header with -F or a 5-line header\n\ |
| 2810 | and trailer without -F)\n\ |
| 2811 | ")); |
| 2812 | oputs (_("\ |
| 2813 | -h, --header=HEADER\n\ |
| 2814 | use a centered HEADER instead of filename in page header,\n\ |
| 2815 | -h \"\" prints a blank line, don't use -h\"\"\n\ |
no test coverage detected