summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-02-16 09:07:05 +0100
committerDave Davenport <qball@gmpclient.org>2015-02-16 09:07:05 +0100
commitbda97e08499cbe73fdbc2a93a3bd97bd60fcd797 (patch)
tree411f2e78f54f003f13206d826a4fb6f564097fea /source/helper.c
parente47ebf359f21db9b9adbaaab3668bb3479b4fb2d (diff)
Throw a warning when using old commandline arguments.
* Give error on -now, -rnow, -snow, -key, -skey, -rkey * Update manpage.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/helper.c b/source/helper.c
index 57de94e1..d81d537e 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -407,6 +407,18 @@ void create_pid_file ( const char *pidfile )
void config_parse_cmd_options ( int argc, char ** argv )
{
+ if ( find_arg ( argc, argv, "-rnow") >= 0 ||
+ find_arg ( argc, argv, "-snow") >= 0 ||
+ find_arg ( argc, argv, "-now") >= 0 ||
+ find_arg ( argc, argv, "-key") >= 0 ||
+ find_arg ( argc, argv, "-skey") >= 0 ||
+ find_arg ( argc, argv, "-rkey") >= 0 ) {
+ fprintf(stderr, "The -snow, -now, -rnow, -key, -rkey, -skey are deprecated "
+ "and have been removed.\n"
+ "Please see the manpage: %s -help for the correct syntax.", argv[0]);
+ exit(EXIT_FAILURE);
+ }
+
find_arg_str ( argc, argv, "-switchers", &( config.switchers ) );
// Parse commandline arguments about the looks.
find_arg_uint ( argc, argv, "-opacity", &( config.window_opacity ) );