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

Function usage

src/cat.c:86–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84static bool pending_cr = false;
85
86void
87usage (int status)
88{
89 if (status != EXIT_SUCCESS)
90 emit_try_help ();
91 else
92 {
93 printf (_("\
94Usage: %s [OPTION]... [FILE]...\n\
95"),
96 program_name);
97 fputs (_("\
98Concatenate FILE(s) to standard output.\n\
99"), stdout);
100
101 emit_stdin_note ();
102
103 oputs (_("\
104 -A, --show-all equivalent to -vET\n\
105"));
106 oputs (_("\
107 -b, --number-nonblank number nonempty output lines, overrides -n\n\
108"));
109 oputs (_("\
110 -e equivalent to -vE\n\
111"));
112 oputs (_("\
113 -E, --show-ends display $ or ^M$ at end of each line\n\
114"));
115 oputs (_("\
116 -n, --number number all output lines\n\
117"));
118 oputs (_("\
119 -s, --squeeze-blank suppress repeated empty output lines\n\
120"));
121 oputs (_("\
122 -t equivalent to -vT\n\
123"));
124 oputs (_("\
125 -T, --show-tabs display TAB characters as ^I\n\
126"));
127 oputs (_("\
128 -u (ignored)\n\
129"));
130 oputs (_("\
131 -v, --show-nonprinting use ^ and M- notation, except for LFD and TAB\n\
132"));
133 oputs (HELP_OPTION_DESCRIPTION);
134 oputs (VERSION_OPTION_DESCRIPTION);
135 printf (_("\
136\n\
137Examples:\n\
138 %s f - g Output f's contents, then standard input, then g's contents.\n\
139 %s Copy standard input to standard output.\n\
140"),
141 program_name, program_name);
142 emit_ancillary_info (PROGRAM_NAME);
143 }

Callers 1

mainFunction · 0.70

Calls 2

emit_stdin_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected