mirror of https://github.com/BOINC/boinc.git
command line options, formatting
svn path=/trunk/boinc/; revision=766
This commit is contained in:
parent
c5c3620f23
commit
1f06763126
|
@ -31,6 +31,7 @@
|
|||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "account.h"
|
||||
|
@ -1023,6 +1024,19 @@ void CLIENT_STATE::parse_cmdline(int argc, char** argv) {
|
|||
minimize = true;
|
||||
continue;
|
||||
};
|
||||
|
||||
if (!strcmp(argv[i], "-version")) {
|
||||
printf( "%.2f %s\n", MAJOR_VERSION+(MINOR_VERSION/100.0), HOST );
|
||||
::exit(0);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!strcmp(argv[i], "-help")) {
|
||||
printf( "Usage: client [options]\n"
|
||||
" -version show version info\n" );
|
||||
::exit(0);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if ((p = getenv("HTTP_PROXY"))) {
|
||||
|
|
Loading…
Reference in New Issue