MCPcopy Create free account
hub / github.com/OpenPrinting/cups / show_help

Function show_help

berkeley/lpc.c:186–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 */
185
186static void
187show_help(const char *command) /* I - Command to describe or NULL */
188{
189 if (!command)
190 {
191 _cupsLangPrintf(stdout,
192 _("Commands may be abbreviated. Commands are:\n"
193 "\n"
194 "exit help quit status ?"));
195 }
196 else if (!compare_strings(command, "help", 1) || !strcmp(command, "?"))
197 _cupsLangPrintf(stdout, _("help\t\tGet help on commands."));
198 else if (!compare_strings(command, "status", 4))
199 _cupsLangPrintf(stdout, _("status\t\tShow status of daemon and queue."));
200 else
201 _cupsLangPrintf(stdout, _("?Invalid help command unknown."));
202}
203
204
205/*

Callers 1

do_commandFunction · 0.85

Calls 2

_cupsLangPrintfFunction · 0.85
compare_stringsFunction · 0.85

Tested by

no test coverage detected