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

Function usage

src/tee.c:80–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78ARGMATCH_VERIFY (output_error_args, output_error_types);
79
80void
81usage (int status)
82{
83 if (status != EXIT_SUCCESS)
84 emit_try_help ();
85 else
86 {
87 printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
88 fputs (_("\
89Copy standard input to each FILE, and also to standard output.\n\
90\n\
91"), stdout);
92 oputs (_("\
93 -a, --append\n\
94 append to the given FILEs, do not overwrite\n\
95"));
96 oputs (_("\
97 -i, --ignore-interrupts\n\
98 ignore interrupt signals\n\
99"));
100 oputs (_("\
101 -p\n\
102 operate in a more appropriate MODE with pipes\n\
103"));
104 oputs (_("\
105 --output-error[=MODE]\n\
106 set behavior on write error. See MODE below\n\
107"));
108 oputs (HELP_OPTION_DESCRIPTION);
109 oputs (VERSION_OPTION_DESCRIPTION);
110 fputs (_("\
111\n\
112MODE determines behavior with write errors on the outputs:\n\
113 warn diagnose errors writing to any output\n\
114 warn-nopipe diagnose errors writing to any output not a pipe\n\
115 exit exit on error writing to any output\n\
116 exit-nopipe exit on error writing to any output not a pipe\n\
117The default MODE for the -p option is 'warn-nopipe'.\n\
118With \"nopipe\" MODEs, exit immediately if all outputs become broken pipes.\n\
119The default operation when --output-error is not specified, is to\n\
120exit immediately on error writing to a pipe, and diagnose errors\n\
121writing to non pipe outputs.\n\
122"), stdout);
123 emit_ancillary_info (PROGRAM_NAME);
124 }
125 exit (status);
126}
127
128int
129main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 1

emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected