diff options
author | Greg Hudson <ghudson@mit.edu> | 1998-05-24 00:48:03 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1998-05-24 00:48:03 +0000 |
commit | 83bd77d41e39def0ffb43560a38806fe4c010f6f (patch) | |
tree | 95fbd0f228689ef4d06ee4dbf293eaff79278b18 /zwgc/main.c | |
parent | 45547d190ead32f7bc19845a90636957734423e1 (diff) |
Add a -loc flag to specify alternative auxiliary location information
instead of the display name or tty.
Diffstat (limited to 'zwgc/main.c')
-rw-r--r-- | zwgc/main.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/zwgc/main.c b/zwgc/main.c index 4a50952..0cc5145 100644 --- a/zwgc/main.c +++ b/zwgc/main.c @@ -67,6 +67,12 @@ char *progname = NULL; char *subscriptions_filename_override = NULL; +/* + * location_override - <<<>>> export! + */ + +char *location_override = NULL; + /****************************************************************************/ /* */ /* Code to deal with reading in the description file: */ @@ -147,13 +153,13 @@ void usage() #ifdef DEBUG fprintf(stderr, "\ zwgc: usage: zwgc [-debug] [-f <filename>] [-subfile <filename>]\n\ - [-ttymode] [-nofork] [-reenter]\n\ + [-ttymode] [-nofork] [-reenter] [-loc text]\n\ [-default <driver>] {-disable <driver>}*\n\ [output driver options]\n"); #else fprintf(stderr, "\ zwgc: usage: zwgc [-f <filename>] [-subfile <filename>]\n\ - [-ttymode] [-nofork] [-reenter]\n\ + [-ttymode] [-nofork] [-reenter] [-loc text]\n\ [-default <driver>] {-disable <driver>}*\n\ [output driver options]\n"); #endif @@ -229,6 +235,11 @@ int main(argc, argv) dofork = 0; } else if (string_Eq(*current, "-reenter")) { argc--; /* just throw it away */ + } else if (string_Eq(*current, "-loc")) { + argc -= 2; current++; + if (!*current) + usage(); + location_override = *current; } else *(new)++ = *current; } |