MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/basenc.c:96–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94};
95
96void
97usage (int status)
98{
99 if (status != EXIT_SUCCESS)
100 emit_try_help ();
101 else
102 {
103 printf (_("\
104Usage: %s [OPTION]... [FILE]\n\
105"), program_name);
106
107#if BASE_TYPE == 42
108 fputs (_("\
109basenc encode or decode FILE, or standard input, to standard output.\n\
110"), stdout);
111#else
112 printf (_("\
113Base%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 (_("\

Callers 1

mainFunction · 0.70

Calls 3

emit_stdin_noteFunction · 0.85
emit_mandatory_arg_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected