remove my name from -v and accept --version

This commit is contained in:
Julien Danjou 2007-12-14 16:32:06 +01:00
parent 687b648c1b
commit e426e60801
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ awesome - awesome window manager
SYNOPSIS
--------
awesome [-v] [-c configuration file]
awesome [-v | --version] [-c configuration file]
DESCRIPTION
-----------
@ -39,7 +39,7 @@ awesome can draw a small border around windows to indicate the focus state.
OPTIONS
-------
-v::
-v | --version::
prints version information to standard output, then exits.
-c::
use an alternate configuration file instead of $HOME/.awesomerc.

View File

@ -292,9 +292,9 @@ main(int argc, char *argv[])
if(argc >= 2)
{
if(!a_strcmp("-v", argv[1]))
if(!a_strcmp("-v", argv[1]) || !a_strcmp("--version", argv[1]))
{
printf("awesome-" VERSION " (" RELEASE ") © 2007 Julien Danjou\n");
printf("awesome-" VERSION " (" RELEASE ")\n");
return EXIT_SUCCESS;
}
else if(!a_strcmp("-c", argv[1]))