Lines Matching refs:command
23 static void usage(const char *command) _CUPS_NORETURN;
35 char *command, /* Command to do */ in main() local
50 if ((command = strrchr(argv[0], '/')) != NULL) in main()
51 command ++; in main()
53 command = argv[0]; in main()
57 if (!strcmp(command, "cupsaccept")) in main()
59 else if (!strcmp(command, "cupsreject")) in main()
61 else if (!strcmp(command, "cupsdisable")) in main()
63 else if (!strcmp(command, "cupsenable")) in main()
67 _cupsLangPrintf(stderr, _("%s: Don't know what to do."), command); in main()
80 usage(command); in main()
95 _cupsLangPrintf(stderr, _("%s: Sorry, no encryption support."), command); in main()
110 _cupsLangPrintf(stderr, _("%s: Error - expected username after \"-U\" option."), command); in main()
111 usage(command); in main()
133 _cupsLangPrintf(stderr, _("%s: Error - expected hostname after \"-h\" option."), command); in main()
134 usage(command); in main()
152 _cupsLangPrintf(stderr, _("%s: Error - expected reason text after \"-r\" option."), command); in main()
153 usage(command); in main()
161 _cupsLangPrintf(stderr, _("%s: Error - unknown option \"%c\"."), command, *opt); in main()
162 usage(command); in main()
196 command, ippErrorString(cupsLastError())); in main()
224 _cupsLangPrintf(stderr, "%s: %s", command, cupsLastErrorString()); in main()
240 usage(const char *command) /* I - Command name */ in usage() argument
242 _cupsLangPrintf(stdout, _("Usage: %s [options] destination(s)"), command); in usage()
248 if (!strcmp(command, "cupsdisable")) in usage()
250 if (!strcmp(command, "cupsenable")) in usage()