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

Function usage

src/env.c:106–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104};
105
106void
107usage (int status)
108{
109 if (status != EXIT_SUCCESS)
110 emit_try_help ();
111 else
112 {
113 printf (_("\
114Usage: %s [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]\n"),
115 program_name);
116 fputs (_("\
117Set each NAME to VALUE in the environment and run COMMAND.\n\
118"), stdout);
119
120 emit_mandatory_arg_note ();
121
122 oputs (_("\
123 -a, --argv0=ARG\n\
124 pass ARG as the zeroth argument of COMMAND\n\
125"));
126 oputs (_("\
127 -i, --ignore-environment\n\
128 start with an empty environment\n\
129"));
130 oputs (_("\
131 -0, --null\n\
132 end each output line with NUL, not newline\n\
133"));
134 oputs (_("\
135 -u, --unset=NAME\n\
136 remove variable from the environment\n\
137"));
138 oputs (_("\
139 -C, --chdir=DIR\n\
140 change working directory to DIR\n\
141"));
142 oputs (_("\
143 -S, --split-string=S\n\
144 process and split S into separate arguments;\n\
145 used to pass multiple arguments on shebang lines\n\
146"));
147 oputs (_("\
148 --block-signal[=SIG]\n\
149 block delivery of SIG signal(s) to COMMAND\n\
150"));
151 oputs (_("\
152 --default-signal[=SIG]\n\
153 reset handling of SIG signal(s) to the default\n\
154"));
155 oputs (_("\
156 --ignore-signal[=SIG]\n\
157 set handling of SIG signal(s) to do nothing\n\
158"));
159 oputs (_("\
160 --list-signal-handling\n\
161 list non default signal handling to standard error\n\
162"));
163 oputs (_("\

Callers 3

mainFunction · 0.70

Calls 3

emit_mandatory_arg_noteFunction · 0.85
emit_exec_statusFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected