aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-14 11:27:50 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-14 11:27:50 +0200
commit21c87a78f1c01fe24610a5d05a65e52bd8eaa796 (patch)
treec4d95580134610222f8a2630d386be460fa74bb4 /conf.c
parent81186cab101fa8c2f82137014d0b3c060b658cb0 (diff)
parent156bbd7b66cf29220c2ff6a86217c4dec5e33765 (diff)
Merging loads of stuff from mainline.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index d4e482cb..2bb938fa 100644
--- a/conf.c
+++ b/conf.c
@@ -81,7 +81,7 @@ conf_t *conf_load( int argc, char *argv[] )
at a *valid* configuration file. */
}
- while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:" ) ) >= 0 )
+ while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:V" ) ) >= 0 )
/* ^^^^ Just to make sure we skip this step from the REHASH handler. */
{
if( opt == 'i' )
@@ -147,7 +147,14 @@ conf_t *conf_load( int argc, char *argv[] )
" -c Load alternative configuration file\n"
" -d Specify alternative user configuration directory\n"
" -x Command-line interface to password encryption/hashing\n"
- " -h Show this help page.\n" );
+ " -h Show this help page.\n"
+ " -V Show version info.\n" );
+ return NULL;
+ }
+ else if( opt == 'V' )
+ {
+ printf( "BitlBee %s\nAPI version %06x\n",
+ BITLBEE_VERSION, BITLBEE_VERSION_CODE );
return NULL;
}
else if( opt == 'R' )