| 908 | } |
| 909 | |
| 910 | void |
| 911 | usage (int status) |
| 912 | { |
| 913 | if (status != EXIT_SUCCESS) |
| 914 | emit_try_help (); |
| 915 | else |
| 916 | { |
| 917 | printf (_("\ |
| 918 | Usage: %s [OPTION]... [NUMBER]...\n\ |
| 919 | "), program_name); |
| 920 | fputs (_("\ |
| 921 | Reformat NUMBER(s), or the numbers from standard input if none are specified.\n\ |
| 922 | "), stdout); |
| 923 | emit_mandatory_arg_note (); |
| 924 | oputs (_("\ |
| 925 | --debug\n\ |
| 926 | print warnings about invalid input\n\ |
| 927 | ")); |
| 928 | oputs (_("\ |
| 929 | -d, --delimiter=X\n\ |
| 930 | use X instead of whitespace for field delimiter\n\ |
| 931 | ")); |
| 932 | oputs (_("\ |
| 933 | --field=FIELDS\n\ |
| 934 | replace the numbers in these input fields (default=1);\n\ |
| 935 | see FIELDS below for details\n\ |
| 936 | ")); |
| 937 | oputs (_("\ |
| 938 | --format=FORMAT\n\ |
| 939 | use printf style floating-point FORMAT;\n\ |
| 940 | see FORMAT below for details\n\ |
| 941 | ")); |
| 942 | oputs (_("\ |
| 943 | --from=UNIT\n\ |
| 944 | auto-scale input numbers to UNITs; default is 'none';\n\ |
| 945 | see UNIT below for details\n\ |
| 946 | ")); |
| 947 | oputs (_("\ |
| 948 | --from-unit=N\n\ |
| 949 | specify the input unit size (instead of the default 1)\n\ |
| 950 | ")); |
| 951 | oputs (_("\ |
| 952 | --grouping\n\ |
| 953 | use locale-defined grouping of digits, e.g. 1,000,000.\n\ |
| 954 | This has no effect in the C/POSIX locale\n\ |
| 955 | ")); |
| 956 | oputs (_("\ |
| 957 | --header[=N]\n\ |
| 958 | print (without converting) the first N header lines;\n\ |
| 959 | N defaults to 1 if not specified\n\ |
| 960 | ")); |
| 961 | oputs (_("\ |
| 962 | --invalid=MODE\n\ |
| 963 | failure mode for invalid numbers;\n\ |
| 964 | MODE can be: abort (default), fail, warn, ignore\n\ |
| 965 | ")); |
| 966 | oputs (_("\ |
| 967 | --padding=N\n\ |
no test coverage detected