[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: -b, --batch mode == force interactive off
From: |
Gary V . Vaughan |
Subject: |
FYI: -b, --batch mode == force interactive off |
Date: |
Sat, 11 Aug 2001 03:11:49 +0100 |
Index: ChangeLog
from Gary V. Vaughan <address@hidden>
* src/main.c (main): Add `-b' (for `batch') mode switch to force
interactive mode off.
Index: src/main.c
===================================================================
RCS file: /cvsroot/m4/m4/src/main.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- src/main.c 2001/08/09 20:06:17 1.9
+++ src/main.c 2001/08/11 01:32:24 1.10
@@ -105,6 +105,7 @@
--help display this help and exit\n\
--version output version information and exit\n\
-c, --discard-comments do not copy comments to the output\n\
+ -b, --batch buffer output, process interrupts\n\
-e, --interactive unbuffer output, ignore interrupts\n\
-E, --fatal-warnings stop execution after first warning\n\
-Q, --quiet, --silent suppress some warnings for builtins\n\
@@ -182,6 +183,7 @@
static const struct option long_options[] =
{
{"arglength", required_argument, NULL, 'l'},
+ {"batch", no_argument, NULL, 'b'},
{"debug", optional_argument, NULL, 'd'},
{"discard-comments", no_argument, NULL, 'c'},
{"diversions", required_argument, NULL, 'N'},
@@ -228,7 +230,8 @@
# define MODULEPATH_SHORTOPT ""
#endif
-#define OPTSTRING
"B:D:EF:GH:I:L:M:N:PQR:S:T:U:"/**/CHANGEWORD_SHORTOPT/**/":cd::el:m:o:st:"
+#define OPTSTRING
"B:D:EF:GH:I:L:M:N:PQR:S:T:U:"/**/CHANGEWORD_SHORTOPT/**/":bcd::el:m:o:st:"
+
#include <dlfcn.h>
int
@@ -369,8 +372,11 @@
break;
#endif
+ case 'b':
+ interactive = FALSE;
+
case 'c':
- discard_comments = 1;
+ discard_comments = TRUE;
break;
case 'd':
@@ -383,7 +389,7 @@
break;
case 'e':
- interactive = 1;
+ interactive = TRUE;
break;
case 'l':
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: -b, --batch mode == force interactive off,
Gary V . Vaughan <=