diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-24 18:02:07 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-24 18:02:07 +0100 | 
| commit | ae3dc9996f5a678d6364005cab1517b6324eb67a (patch) | |
| tree | d62ac84957cafa2f956ab82e0ff20505c64f2250 /conf.c | |
| parent | b5b40ffd38e315223c6e38e4a291cbd58e471062 (diff) | |
| parent | f1b7711f566163ff27a8f13ae3ccc7214a24fe70 (diff) | |
Merging stuff from mainline (1.2.6).
Diffstat (limited to 'conf.c')
| -rw-r--r-- | conf.c | 11 | 
1 files changed, 9 insertions, 2 deletions
| @@ -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' ) | 
