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

Function usage

src/cut.c:173–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171};
172
173void
174usage (int status)
175{
176 if (status != EXIT_SUCCESS)
177 emit_try_help ();
178 else
179 {
180 printf (_("\
181Usage: %s OPTION... [FILE]...\n\
182"),
183 program_name);
184 fputs (_("\
185Print selected parts of lines from each FILE to standard output.\n\
186"), stdout);
187
188 emit_stdin_note ();
189 emit_mandatory_arg_note ();
190
191 oputs (_("\
192 -b, --bytes=LIST\n\
193 select only these byte positions\n\
194"));
195 oputs (_("\
196 -c, --characters=LIST\n\
197 select only these character positions\n\
198"));
199 oputs (_("\
200 --complement\n\
201 complement the set of selected bytes, characters or fields\n\
202"));
203 oputs (_("\
204 -d, --delimiter=DELIM\n\
205 use DELIM instead of TAB for field delimiter\n\
206"));
207 oputs (_("\
208 -f, --fields=LIST\n\
209 select only these fields; also print any line that contains\n\
210 no delimiter character, unless the -s option is specified\n\
211"));
212 oputs (_("\
213 -F LIST\n\
214 like -f, but also implies -w and -O ' '\n\
215"));
216 oputs (_("\
217 -n, --no-partial\n\
218 with -b, don't output partial multi-byte characters\n\
219"));
220 oputs (_("\
221 -O, --output-delimiter=STRING\n\
222 use STRING as the output delimiter;\n\
223 the default is to use the input delimiter\n\
224"));
225 oputs (_("\
226 -s, --only-delimited\n\
227 do not print lines not containing delimiters\n\
228"));
229 oputs (_("\
230 -w, --whitespace-delimited[=trimmed]\n\

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