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

Function usage

src/tac.c:112–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110};
111
112void
113usage (int status)
114{
115 if (status != EXIT_SUCCESS)
116 emit_try_help ();
117 else
118 {
119 printf (_("\
120Usage: %s [OPTION]... [FILE]...\n\
121"),
122 program_name);
123 fputs (_("\
124Write each FILE to standard output, last line first.\n\
125"), stdout);
126
127 emit_stdin_note ();
128 emit_mandatory_arg_note ();
129
130 oputs (_("\
131 -b, --before attach the separator before instead of after\n\
132"));
133 oputs (_("\
134 -r, --regex interpret the separator as a regular expression\n\
135"));
136 oputs (_("\
137 -s, --separator=STRING use STRING as the separator instead of newline\n\
138"));
139 oputs (HELP_OPTION_DESCRIPTION);
140 oputs (VERSION_OPTION_DESCRIPTION);
141 fputs (_("\n\
142Non-seekable input is buffered to $TMPDIR, defaulting to /tmp.\n\
143"), stdout);
144 emit_ancillary_info (PROGRAM_NAME);
145 }
146 exit (status);
147}
148
149/* Print the characters from START to PAST_END - 1.
150 If START is null, just flush the buffer. */

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