bool unsetrev = false, unsetinact = false;
bool unsetdel = false;
bool genonly = false;
- bool quiet = false;
bool show_progress = false;
unsigned char c;
isc_stdtime_t syncadd = 0, syncdel = 0;
static void
report(const char *format, ...) {
- FILE *out = output_stdout ? stderr : stdout;
- va_list args;
- va_start(args, format);
- vfprintf(out, format, args);
- va_end(args);
- putc('\n', out);
+ if (!quiet) {
+ FILE *out = output_stdout ? stderr : stdout;
+ va_list args;
+ va_start(args, format);
+ vfprintf(out, format, args);
+ va_end(args);
+ putc('\n', out);
+ }
}
static void
fprintf(stderr, "\t-j jitter:\n");
fprintf(stderr, "\t\trandomize signature end time up to jitter seconds\n");
fprintf(stderr, "\t-v debuglevel (0)\n");
+ fprintf(stderr, "\t-q quiet\n");
fprintf(stderr, "\t-V:\tprint version information\n");
fprintf(stderr, "\t-o origin:\n");
fprintf(stderr, "\t\tzone origin (name of zonefile)\n");
fatal("verbose level must be numeric");
break;
+ case 'q':
+ quiet = true;
+ break;
+
case 'X':
dnskey_endstr = isc_commandline_argument;
break;
static void
report(const char *format, ...) {
- va_list args;
- va_start(args, format);
- vfprintf(stdout, format, args);
- va_end(args);
- putc('\n', stdout);
+ if (!quiet) {
+ va_list args;
+ va_start(args, format);
+ vfprintf(stdout, format, args);
+ va_end(args);
+ putc('\n', stdout);
+ }
}
/*%
fprintf(stderr, "Options: (default value in parenthesis) \n");
fprintf(stderr, "\t-v debuglevel (0)\n");
+ fprintf(stderr, "\t-q quiet\n");
fprintf(stderr, "\t-V:\tprint version information\n");
fprintf(stderr, "\t-o origin:\n");
fprintf(stderr, "\t\tzone origin (name of zonefile)\n");
fatal("verbose level must be numeric");
break;
+ case 'q':
+ quiet = true;
+ break;
+
case 'x':
keyset_kskonly = true;
break;
#include "dnssectool.h"
-int verbose;
+int verbose = 0;
+bool quiet = false;
uint8_t dtype[8];
static fatalcallback_t *fatalcallback = NULL;
#define PATH_MAX 1024 /* WIN32, and others don't define this. */
#endif
-/*! verbosity: set by -v option in each program, defined in dnssectool.c */
+/*! verbosity: set by -v and -q option in each program, defined in dnssectool.c */
extern int verbose;
+extern bool quiet;
/*! program name, statically initialized in each program */
extern const char *program;