printf("use alternate configuration file\n");
printf(" -d ");
printf("Display debugging messages.\n");
- printf(" -display <host:display> ");
- printf("X display name\n");
- printf(" -geometry +XPOS+YPOS ");
- printf("initial window position\n");
printf(" -h ");
printf("display this help and exit\n");
printf(" -version ");
int i;
char *token;
bool config_file_on = false;
- bool display_on = false;
- bool geometry_on = false;
/* Default values. */
wmnotify_infos.debug = false;
}
break;
case 'd':
- if (STREQ("display", &token[1]))
- display_on = true;
- else if (strlen(&token[1]) == 1)
- wmnotify_infos.debug = true;
- break;
- case 'g':
- if (STREQ("geometry", &token[1]))
- geometry_on = true;
- else
- InvalidOption("invalid option", token);
+ wmnotify_infos.debug = true;
break;
case 'h':
if (strlen(&token[1]) == 1) {
token;
/*strcpy( config_file_name, token ); */
config_file_on = false;
- } else if (display_on != false) {
- display_on = false;
- wmnotify_infos.display_arg = token;
- } else if (geometry_on != false) {
- geometry_on = false;
- wmnotify_infos.geometry_arg = token;
} else {
InvalidOption("invalid option", token);
}
} /* end for */
if (config_file_on != false) {
- InvalidOption("missing configuration file parameter",
- NULL);
- } else if (display_on != false) {
- InvalidOption("missing display parameter", NULL);
- } else if (geometry_on != false) {
- InvalidOption("missing geometry parameter", NULL);
+ InvalidOption("missing configuration file parameter", NULL);
}
}