From: oetiker Date: Wed, 15 Jan 2003 19:24:13 +0000 (+0000) Subject: * single letter variants for all graph options -- James Overbeck X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f0c6bba949430326167217d3f667b4d99b681511;p=rrdtool.git * single letter variants for all graph options -- James Overbeck git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@171 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/doc/rrdcreate.pod b/doc/rrdcreate.pod index d0ecbe9..7a327f8 100644 --- a/doc/rrdcreate.pod +++ b/doc/rrdcreate.pod @@ -87,7 +87,7 @@ the 32bit or 64bit border and acts accordingly by adding an appropriate value to will store the derivative of the line going from the last to the current value of the data source. This can be useful for gauges, for example, to measure the rate of people entering or leaving a -room. Internally, derive works exaclty like COUNTER but without +room. Internally, derive works exactly like COUNTER but without overflow checks. So if your counter does not reset at 32 or 64 bit you might want to use DERIVE and combine it with a MIN value of 0. diff --git a/doc/rrdgraph-old.pod b/doc/rrdgraph-old.pod index eb0456f..6d34782 100644 --- a/doc/rrdgraph-old.pod +++ b/doc/rrdgraph-old.pod @@ -11,10 +11,10 @@ S<[B<-s>|B<--start> I]> S<[B<-e>|B<--end> I]> S<[B<-x>|B<--x-grid> I]> S<[B<-y>|B<--y-grid> I]> -S<[B<--alt-y-grid>]> -S<[B<--alt-autoscale>]> -S<[B<--alt-autoscale-max>]> -S<[B<--units-exponent>]> I]> +S<[B<-Y>|B<--alt-y-grid>]> +S<[B<-A>|B<--alt-autoscale>]> +S<[B<-M>|B<--alt-autoscale-max>]> +S<[B<-X>|B<--units-exponent>]> I]> S<[B<-v>|B<--vertical-label> I]> S<[B<-w>|B<--width> I]> S<[B<-h>|B<--height> I]> @@ -27,7 +27,7 @@ S<[B<-u>|B<--upper-limit> I]> S<[B<-l>|B<--lower-limit> I]> S<[B<-g>|B<--no-legend>]> S<[B<-r>|B<--rigid>]> -S<[B<--step> I]> +S<[B<-S>|B<--step> I]> S<[B<-b>|B<--base> I]> S<[B<-c>|B<--color> IB<#>I]> S<[B<-t>|B<--title> I]> diff --git a/doc/rrdgraph.src b/doc/rrdgraph.src index 89b4268..0f8489d 100644 --- a/doc/rrdgraph.src +++ b/doc/rrdgraph.src @@ -71,7 +71,7 @@ Z<> B<[-s|--start E<lt>timeE<gt>]> B<[-e|--end E<lt>timeE<gt>]> -B<[--step E<lt>secondsE<gt>]> +B<[-S|--step E<lt>secondsE<gt>]> The start and end of what you would like to display, and which B<RRA> the data should come from. Defaults are: 1 day ago until @@ -153,7 +153,7 @@ To mimic the old B<rigid> option, you can do: --maximum-upper-limit 4000 --minimum-upper-limit 4000 --maximum-lower-limit -3000 --minimum-lower-limit -3000 -B<[--alt-autoscale]> +B<[-A|--alt-autoscale]> Sometimes the default algorithm for selecting the y-axis scale is not performing very well. Normally the scale is selected from a predefined @@ -163,7 +163,7 @@ maximum y-axis from the actual minimum and maximum values. Our example would display slightly less than C<260-0.001> to slightly more than C<260+0.001> (Contributed by Sasha Mikheev). -B<[--alt-autoscale-max]> +B<[-M|--alt-autoscale-max]> Where C<--alt-autoscale> will modify both the absolute maximum AND minimum values, this option will only affect the maximum value. The minimum @@ -171,7 +171,7 @@ value, if not defined on the command line, will be 0. This option can be useful when graphing router traffic when the WAN line uses compression, and thus the throughput may be higher than the WAN line speed. -B<[--no-gridfit]> +B<[-N|--no-gridfit]> To avoid antialiasing effects gridlines are placed on integer pixel values. This is by default done by extending @@ -237,7 +237,7 @@ placed every I<label factor> lines. You can specify C<-y none> to skip the grid and labels altogether. The default for this option is to automatically select sensible values. -B<[--alt-y-grid]> +B<[-Y|--alt-y-grid]> Place Y grid dynamically based on graph Y range. Algorithm ensures that you always have grid, that there are enough but not too many @@ -248,7 +248,7 @@ B<[-o|--logarithmic]> Logarithmic y-axis scaling. -B<[--units-exponent E<lt>valueE<gt>]> +B<[-X|--units-exponent E<lt>valueE<gt>]> This sets the 10**exponent scaling of the y-axis values. Normally values will be scaled to the appropriate units (k, M, etc.). However diff --git a/doc/rrdgraph_graph.src b/doc/rrdgraph_graph.src index aa116f5..5b3bfd6 100644 --- a/doc/rrdgraph_graph.src +++ b/doc/rrdgraph_graph.src @@ -4,7 +4,7 @@ =over 4 -=item B<to be depriciated commands> +=item B<to be deprecated commands> =over 4 @@ -62,7 +62,7 @@ Similarly no report is generated if you don't use print options. =item B<PRINT> : I<vname> : I<CF> : I<format> -I<Depriciated. Use the new form of this command in new scripts.> +I<Deprecated. Use the new form of this command in new scripts.> The first form of this command is to be used with B<CDEF> I<vname>s. =item B<PRINT> : I<vname> : I<format> @@ -168,7 +168,7 @@ B<%Z> time zone =item B<GPRINT> : I<vname> : I<CF> : I<format> -I<Depriciated. Use the new form of this command in new scripts.> +I<Deprecated. Use the new form of this command in new scripts.> This is the same as C<PRINT> but now it is printed inside the graph. =item B<GPRINT> : I<vname> : I<format> @@ -213,7 +213,7 @@ also be filled. =item B<STACK> : I<vname> # I<color> [ :I<legend> ] -I<Depriciated. Use the B<STACK> modifiers on the other commands.> +I<Deprecated. Use the B<STACK> modifiers on the other commands.> I<Note: the comments on stacking are still valid...> Repeats the last B<LINEx> or B<AREA> however it doesn't start at the x-axis but rather on top of the previous element. This implies that diff --git a/src/rrd_graph.c b/src/rrd_graph.c index b895225..38956d7 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -2707,41 +2707,41 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im) {"lazy", no_argument, 0, 'z'}, {"zoom", required_argument, 0, 'm'}, {"no-legend", no_argument, 0, 'g'}, - {"alt-y-grid", no_argument, 0, 257 }, - {"alt-autoscale", no_argument, 0, 258 }, - {"alt-autoscale-max", no_argument, 0, 259 }, - {"units-exponent",required_argument, 0, 260}, - {"step", required_argument, 0, 261}, - {"no-gridfit", no_argument, 0, 262}, + {"alt-y-grid", no_argument, 0, 'Y'}, + {"alt-autoscale", no_argument, 0, 'A'}, + {"alt-autoscale-max", no_argument, 0, 'M'}, + {"units-exponent",required_argument, 0, 'X'}, + {"step", required_argument, 0, 'S'}, + {"no-gridfit", no_argument, 0, 'N'}, {0,0,0,0}}; int option_index = 0; int opt; opt = getopt_long(argc, argv, - "s:e:x:y:v:w:h:iu:l:rb:oc:n:m:t:f:a:zg", + "s:e:x:y:v:w:h:iu:l:rb:oc:n:m:t:f:a:zgYAMX:S:N", long_options, &option_index); if (opt == EOF) break; switch(opt) { - case 257: + case 'Y': im->extra_flags |= ALTYGRID; break; - case 258: + case 'A': im->extra_flags |= ALTAUTOSCALE; break; - case 259: + case 'M': im->extra_flags |= ALTAUTOSCALE_MAX; break; case 'g': im->extra_flags |= NOLEGEND; break; - case 260: + case 'X': im->unitsexponent = atoi(optarg); break; - case 261: + case 'S': im->step = atoi(optarg); break; case 262: