Re: Bug#573299: rrdtool: ERROR: unknown option 'M'

Tobias Oetiker <[email protected]>
Newsgroups gmane.comp.db.rrdtool.devel
Message-ID <[email protected]>
Hi Sebastian,

thanks ... I integrated it in r2033

cheers
tobi

Yesterday Sebastian Harl wrote:

> tags 573299 + patch pending
> thanks
>
> Hi,
>
> (This is a follow-up to Debian bug #573299 -- see
> <http://bugs.debian.org/573299> for details.)
>
> On Wed, Mar 10, 2010 at 02:17:20PM +0100, Ralf Hildebrandt wrote:
> > /usr/bin/rrdtool graph '/usr/share/serverstats/graph/23e14748c7e0282b6acbbc1bd26e1fea.png' -t
> > 'CPU usage' -s '-86400' -a 'PNG' -w '500' -h '150' -u '100' -l '0' -M -z
> [...]
> > results in:
> >
> > ERROR: unknown option 'M'
> >
> > Yet the man page says:
> >
> > # rrdtool help graph |grep M
> > [-M|--alt-autoscale-max]
> > [COMMENT:text]
>
> Thanks for reporting this!
>
> The attached, trivial patch fixes this issue.
>
> Also, since getopt_long() was told to return `m' to indicate the
> ``--zoom'' option, I presume that `-m' was supposed to be supported as
> well. Thus, I've added support for that as well and documented that in
> the rrdgraph(1) manpage.
>
> Tobi, is that fine for you?
>
> Cheers,
> Sebastian
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch [email protected] ++41 62 775 9902 / sb: -9900
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.