Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
extern int resolve_hosts;
extern int oneline;
extern int brief;
+extern int json;
extern int timestamp;
extern int timestamp_short;
extern const char * _SL_;
int resolve_hosts;
int oneline;
int brief;
+int json;
int timestamp;
const char *_SL_;
int force;
batch_file = argv[1];
} else if (matches(opt, "-brief") == 0) {
++brief;
+ } else if (matches(opt, "-json") == 0) {
+ ++json;
} else if (matches(opt, "-rcvbuf") == 0) {
unsigned int size;
_SL_ = oneline ? "\\" : "\n";
+ if (json)
+ check_if_color_enabled();
+
if (batch_file)
return batch(batch_file);