[Xfce-i18n] Xfce-power-manager: Is this an error?

Christian Dywan christian at twotoasts.de
Tue Nov 4 19:54:43 CET 2008

Am Mon, 3 Nov 2008 23:30:02 -0800
schrieb "Brian J. Tarricone" <kelnos at xfce.org>:

> On Tue, 04 Nov 2008 08:32:05 +0200 Besnik Bleta wrote:
> > Hello,
> > 
> > Could anybody confirm that the following is correct:
> > 
> > \n
> > Usage: xfce-power-manager [options] \n
> > \n
> > Options:\n
> > -h, --help       Print this help message and exit\n
> > -v, --version    Print this help message and exit\n
> > -r, --run        Start xfce power manager\n
> > -c, --customize  Show Configuration dialog\n
> > -q, --quit       Quit any running xfce power manager\n
> > \n
> > 
> > or -h and -v options are doubling each other?
> Yeah that's probably wrong...  Also, Ali, the standard short option
> for --version is -V, not -v.  You'd use -v for 'verbose'.

That is not true. -v can mean --verbose but it does actually mean
--version in lots of applications, including famous ones like Thunar
and Terminal.

However indeed -v and -h are in no case equivalent. --version should
actually print version information.

Also you should either use GOptionContext or, if that is for some
reason not possible, replicate the output. In the latter case, there's
a line break missing after "Usage:". Just look at what other (Xfce)
applications are doing.


More information about the Xfce-i18n mailing list