33 .PrintErrorMessages =
false,
35 .ShowWelcomeWindow =
false,
37 .ShowWelcomeWindow =
true,
53 .restore_filename =
NULL,
136#define CHK(x) else if(strcmp(argv[1], (x)) == 0)
153 if(
argc <= 2 || strlen(
argv[2]) < 1) {
192 CLarg.is_captive =
true;
204 CLarg.KeepTmpFile =
true;
210 CLarg.GoThroughM4 =
false;
220#define IFIS(x) if(strcmp(long_options[optidx].name, (x)) == 0)
236 CLarg.ewmh_replace =
true;
291 fprintf(
stderr,
"Internal error in getopt: '%s' unhandled.\n",
322 if(!
CLarg.GoThroughM4) {
323 if(
CLarg.KeepTmpFile) {
324 fprintf(
stderr,
"--keep-defs is incompatible with --nom4.\n");
327 if(
CLarg.keepM4_filename) {
337 fprintf(
stderr,
"--name is meaningless without --window.\n");
349 fprintf(
stderr,
"--window is incompatible with --cfgchk.\n");
375 fprintf(
stderr,
"%*s[(--file | -f) initfile] [--cfgchk] [--dumpcfg]\n",
380 "[(--keep | -K) m4file]\n",
llen,
"");
383 fprintf(
stderr,
"%*s[--verbose | -v] [--quiet | -q] [--mono] "
384 "[--xrm resource]\n",
llen,
"");
386 fprintf(
stderr,
"%*s[--version] [--info] [--nowelcome | -W]\n",
static void dump_default_config(void)
void clargs_parse(int argc, char *argv[])
static void print_version(void)
static void DisplayInfo(void)
char * ctopts_string(char *sep)
const char * VersionNumberFull