| 72 | }; |
| 73 | |
| 74 | void |
| 75 | usage (int status) |
| 76 | { |
| 77 | if (status != EXIT_SUCCESS) |
| 78 | emit_try_help (); |
| 79 | else |
| 80 | { |
| 81 | printf (_("\ |
| 82 | Usage: %s [OPTION]... LAST\n\ |
| 83 | or: %s [OPTION]... FIRST LAST\n\ |
| 84 | or: %s [OPTION]... FIRST INCREMENT LAST\n\ |
| 85 | "), program_name, program_name, program_name); |
| 86 | fputs (_("\ |
| 87 | Print numbers from FIRST to LAST, in steps of INCREMENT.\n\ |
| 88 | "), stdout); |
| 89 | |
| 90 | emit_mandatory_arg_note (); |
| 91 | |
| 92 | oputs (_("\ |
| 93 | -f, --format=FORMAT\n\ |
| 94 | use printf style floating-point FORMAT\n\ |
| 95 | ")); |
| 96 | oputs (_("\ |
| 97 | -s, --separator=STRING\n\ |
| 98 | use STRING to separate numbers (default: \\n)\n\ |
| 99 | ")); |
| 100 | oputs (_("\ |
| 101 | -w, --equal-width\n\ |
| 102 | equalize width by padding with leading zeroes\n\ |
| 103 | ")); |
| 104 | oputs (HELP_OPTION_DESCRIPTION); |
| 105 | oputs (VERSION_OPTION_DESCRIPTION); |
| 106 | fputs (_("\ |
| 107 | \n\ |
| 108 | If FIRST or INCREMENT is omitted, it defaults to 1. That is, an\n\ |
| 109 | omitted INCREMENT defaults to 1 even when LAST is smaller than FIRST.\n\ |
| 110 | The sequence of numbers ends when the sum of the current number and\n\ |
| 111 | INCREMENT would become greater than LAST.\n\ |
| 112 | FIRST, INCREMENT, and LAST are interpreted as floating point values.\n\ |
| 113 | INCREMENT is usually positive if FIRST is smaller than LAST, and\n\ |
| 114 | INCREMENT is usually negative if FIRST is greater than LAST.\n\ |
| 115 | INCREMENT must not be 0; none of FIRST, INCREMENT and LAST may be NaN.\n\ |
| 116 | "), stdout); |
| 117 | fputs (_("\ |
| 118 | FORMAT must be suitable for printing one argument of type 'double';\n\ |
| 119 | it defaults to %.PRECf if FIRST, INCREMENT, and LAST are all fixed point\n\ |
| 120 | decimal numbers with maximum precision PREC, and to %g otherwise.\n\ |
| 121 | "), stdout); |
| 122 | emit_ancillary_info (PROGRAM_NAME); |
| 123 | } |
| 124 | exit (status); |
| 125 | } |
| 126 | |
| 127 | /* A command-line operand. */ |
| 128 | struct operand |
no test coverage detected