| 94 | }; |
| 95 | |
| 96 | void |
| 97 | usage (int status) |
| 98 | { |
| 99 | if (status != EXIT_SUCCESS) |
| 100 | emit_try_help (); |
| 101 | else |
| 102 | { |
| 103 | printf (_("\ |
| 104 | Usage: %s [OPTION]... [FILE]\n\ |
| 105 | "), program_name); |
| 106 | |
| 107 | #if BASE_TYPE == 42 |
| 108 | fputs (_("\ |
| 109 | basenc encode or decode FILE, or standard input, to standard output.\n\ |
| 110 | "), stdout); |
| 111 | #else |
| 112 | printf (_("\ |
| 113 | Base%d encode or decode FILE, or standard input, to standard output.\n\ |
| 114 | "), BASE_TYPE); |
| 115 | #endif |
| 116 | |
| 117 | emit_stdin_note (); |
| 118 | emit_mandatory_arg_note (); |
| 119 | #if BASE_TYPE == 42 |
| 120 | oputs (_("\ |
| 121 | --base64\n\ |
| 122 | same as 'base64' program (RFC4648 section 4)\n\ |
| 123 | ")); |
| 124 | oputs (_("\ |
| 125 | --base64url\n\ |
| 126 | file- and url-safe base64 (RFC4648 section 5)\n\ |
| 127 | ")); |
| 128 | oputs (_("\ |
| 129 | --base58\n\ |
| 130 | visually unambiguous base58 encoding\n\ |
| 131 | ")); |
| 132 | oputs (_("\ |
| 133 | --base32\n\ |
| 134 | same as 'base32' program (RFC4648 section 6)\n\ |
| 135 | ")); |
| 136 | oputs (_("\ |
| 137 | --base32hex\n\ |
| 138 | extended hex alphabet base32 (RFC4648 section 7)\n\ |
| 139 | ")); |
| 140 | oputs (_("\ |
| 141 | --base16\n\ |
| 142 | hex encoding (RFC4648 section 8)\n\ |
| 143 | ")); |
| 144 | oputs (_("\ |
| 145 | --base2msbf\n\ |
| 146 | bit string with most significant bit (msb) first\n\ |
| 147 | ")); |
| 148 | oputs (_("\ |
| 149 | --base2lsbf\n\ |
| 150 | bit string with least significant bit (lsb) first\n\ |
| 151 | ")); |
| 152 | #endif |
| 153 | oputs (_("\ |
no test coverage detected