Changeset 4862

Show
Ignore:
Timestamp:
03/05/07 03:26:51 (21 months ago)
Author:
root_42
Message:

Bugfix for #1497.
Added command line option -v or --version to show version number
and compilation date, then quit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/licq.cpp

    r4649 r4862  
    239239    int i = 0; 
    240240#ifdef __GLIBC__ 
    241     while( (i = getopt(argc, argv, "--hd:b:p:Io:fc")) > 0) 
     241    while( (i = getopt(argc, argv, "--hd:b:p:Io:fcv")) > 0) 
    242242#else 
    243     while( (i = getopt(argc, argv, "hd:b:p:Io:fc")) > 0) 
     243    while( (i = getopt(argc, argv, "hd:b:p:Io:fcv")) > 0) 
    244244#endif 
    245245    { 
     
    274274        bFork = true; 
    275275        break; 
     276      case 'v':  // show version 
     277        printf(tr("%s version %s, compiled on %s\n"), PACKAGE, VERSION, __DATE__); 
     278        return false; 
     279        break; 
    276280      } 
    277281    }