From: Vaibhav Bajpai Date: Thu, 2 May 2013 19:48:14 +0000 (+0200) Subject: enabled displayCSV with --csv (or -C) argument X-Git-Tag: v0.85~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f636d7124054477c6e15c46e3eb52208917faa2;p=thirdparty%2Fmtr.git enabled displayCSV with --csv (or -C) argument --- diff --git a/mtr.c b/mtr.c index 746393b..39a618f 100644 --- a/mtr.c +++ b/mtr.c @@ -138,6 +138,7 @@ void parse_arg (int argc, char **argv) { "curses", 0, 0, 't' }, { "gtk", 0, 0, 'g' }, { "raw", 0, 0, 'l' }, + { "csv", 0, 0, 'C' }, { "split", 0, 0, 'p' }, /* BL */ /* maybe above should change to -d 'x' */ @@ -172,7 +173,7 @@ void parse_arg (int argc, char **argv) while(1) { /* added f:m:o: byMin */ opt = getopt_long(argc, argv, - "vhrwxtglpo:B:i:c:s:Q:ena:f:m:uTP:Zby:z46", long_options, NULL); + "vhrwxtglCpo:B:i:c:s:Q:ena:f:m:uTP:Zby:z46", long_options, NULL); if(opt == -1) break; @@ -203,6 +204,9 @@ void parse_arg (int argc, char **argv) case 'l': DisplayMode = DisplayRaw; break; + case 'C': + DisplayMode = DisplayCSV; + break; case 'x': DisplayMode = DisplayXML; break;