Changeset 3d1481f


Ignore:
Timestamp:
2010-04-13T22:25:40Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
542e44a
Parents:
40bc82d
Message:

Adding -V flag to show version info from a not-serving binary. (Bug #580)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r40bc82d r3d1481f  
    7979        }
    8080       
    81         while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:" ) ) >= 0 )
     81        while( argc > 0 && ( opt = getopt( argc, argv, "i:p:P:nvIDFc:d:hR:u:V" ) ) >= 0 )
    8282        /*     ^^^^ Just to make sure we skip this step from the REHASH handler. */
    8383        {
     
    145145                                "  -d  Specify alternative user configuration directory\n"
    146146                                "  -x  Command-line interface to password encryption/hashing\n"
    147                                 "  -h  Show this help page.\n" );
     147                                "  -h  Show this help page.\n"
     148                                "  -V  Show version info.\n" );
     149                        return NULL;
     150                }
     151                else if( opt == 'V' )
     152                {
     153                        printf( "BitlBee %s\nAPI version %06x\n",
     154                                BITLBEE_VERSION, BITLBEE_VERSION_CODE );
    148155                        return NULL;
    149156                }
Note: See TracChangeset for help on using the changeset viewer.