/*
- * "$Id$"
+ * Scheduler control program for CUPS.
*
- * Scheduler control program for CUPS.
+ * Copyright 2007-2012 by Apple Inc.
+ * Copyright 2006-2007 by Easy Software Products.
*
- * Copyright 2007-2011 by Apple Inc.
- * Copyright 2006-2007 by Easy Software Products.
- *
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * which should have been included with this file. If this file is
- * file is missing or damaged, see the license at "http://www.cups.org/".
- *
- * This file is subject to the Apple OS-Developed Software exception.
- *
- * Contents:
- *
- * main() - Get/set server settings.
- * usage() - Show program usage.
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
*/
/*
* Local functions...
*/
-static void usage(const char *opt);
+static void usage(const char *opt) __attribute__((noreturn));
/*
else if (!strcmp(argv[i], "--no-remote-any"))
num_settings = cupsAddOption(CUPS_SERVER_REMOTE_ANY, "0",
num_settings, &settings);
- else if (!strcmp(argv[i], "--remote-printers"))
- num_settings = cupsAddOption(CUPS_SERVER_REMOTE_PRINTERS, "1",
- num_settings, &settings);
- else if (!strcmp(argv[i], "--no-remote-printers"))
- num_settings = cupsAddOption(CUPS_SERVER_REMOTE_PRINTERS, "0",
- num_settings, &settings);
else if (!strcmp(argv[i], "--share-printers"))
num_settings = cupsAddOption(CUPS_SERVER_SHARE_PRINTERS, "1",
num_settings, &settings);
_cupsLangPuts(stdout, "");
_cupsLangPuts(stdout, _("Options:"));
_cupsLangPuts(stdout, "");
- _cupsLangPuts(stdout, _(" -E Enable encryption."));
- _cupsLangPuts(stdout, _(" -U username Specify username."));
- _cupsLangPuts(stdout, _(" -h server[:port] Specify server "
+ _cupsLangPuts(stdout, _(" -E Encrypt the connection."));
+ _cupsLangPuts(stdout, _(" -U username Specify username."));
+ _cupsLangPuts(stdout, _(" -h server[:port] Specify server "
"address."));
_cupsLangPuts(stdout, "");
- _cupsLangPuts(stdout, _(" --[no-]debug-logging Turn debug logging "
+ _cupsLangPuts(stdout, _(" --[no-]debug-logging Turn debug logging "
"on/off."));
- _cupsLangPuts(stdout, _(" --[no-]remote-admin Turn remote "
+ _cupsLangPuts(stdout, _(" --[no-]remote-admin Turn remote "
"administration on/off."));
- _cupsLangPuts(stdout, _(" --[no-]remote-any Allow/prevent access "
+ _cupsLangPuts(stdout, _(" --[no-]remote-any Allow/prevent access "
"from the Internet."));
- _cupsLangPuts(stdout, _(" --[no-]remote-printers Show/hide remote "
- "printers."));
- _cupsLangPuts(stdout, _(" --[no-]share-printers Turn printer sharing "
+ _cupsLangPuts(stdout, _(" --[no-]share-printers Turn printer sharing "
"on/off."));
- _cupsLangPuts(stdout, _(" --[no-]user-cancel-any Allow/prevent users to "
+ _cupsLangPuts(stdout, _(" --[no-]user-cancel-any Allow/prevent users to "
"cancel any job."));
exit(1);
}
-
-
-/*
- * End of "$Id$".
- */