All EZwgl applications accept the set of standard
command line options listed in the next table.
At startup time, the command line is parsed
first in search of the standard options first,
matching options are removed. The altered command line
is then send to XrmParseCommand
to match against
the command line option table passed to
EZ_InitializeXrm
.
static XrmOptionDescRec EZ_StandardCommandLineOptions[] = { {"-display", ".display", XrmoptionSepArg, NULL}, {"-visual", ".visual", XrmoptionSepArg, NULL}, {"-geometry", ".geometry", XrmoptionSepArg, NULL}, {"-background", "*background", XrmoptionSepArg, NULL}, {"-bg", "*background", XrmoptionSepArg, NULL}, {"-foreground", "*foreground", XrmoptionSepArg, NULL}, {"-fg", "*foreground", XrmoptionSepArg, NULL}, {"-iconic", ".initialState", XrmoptionNoArg, "IconicState"}, {"-backingstore", ".backingStore", XrmoptionNoArg, "True"}, {"-privateColormap", ".privateColormap", XrmoptionNoArg, "True"}, {"-readWriteColormap",".readWriteColormap", XrmoptionNoArg, "True"}, /* the next two options are for debugging only */ {"-xrmfile", NOTHING, XrmoptionSepArg, NULL}, {"-className", NOTHING, XrmoptionSepArg, NULL}, };
EZwgl also support the -name
command-line option. It sets
the instance name of the application to the specified name.