X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_xport.c;h=cc1dd0a594d0838e5be603dfc34858dab1213ab6;hp=08e16107bda431ab84da5f51f7416a2d1fa3d597;hb=7f4dd5f9c0f20e4d6690685641a9cd8ea621da51;hpb=0881b8848ab8c1cb9b50db4599d4adc9391a774d diff --git a/src/rrd_xport.c b/src/rrd_xport.c index 08e1610..cc1dd0a 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -1,5 +1,5 @@ /**************************************************************************** - * RRDtool 1.2.12 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.20 Copyright by Tobi Oetiker, 1997-2007 **************************************************************************** * rrd_xport.c export RRD data ****************************************************************************/ @@ -61,6 +61,7 @@ rrd_xport(int argc, char **argv, int UNUSED(*xsize), {"end", required_argument, 0, 'e'}, {"maxrows", required_argument, 0, 'm'}, {"step", required_argument, 0, 261}, + {"enumds", no_argument, 0, 262}, /* these are handled in the frontend ... */ {0,0,0,0} }; int option_index = 0; @@ -76,6 +77,8 @@ rrd_xport(int argc, char **argv, int UNUSED(*xsize), case 261: im.step = atoi(optarg); break; + case 262: + break; case 's': if ((parsetime_error = parsetime(optarg, &start_tv))) { rrd_set_error( "start time: %s", parsetime_error ); @@ -96,7 +99,7 @@ rrd_xport(int argc, char **argv, int UNUSED(*xsize), } break; case '?': - rrd_set_error("unknown option '%c'", optopt); + rrd_set_error("unknown option '%s'",argv[optind-1]); return -1; } }