command line options, formatting

svn path=/trunk/boinc/; revision=766
This commit is contained in:
Eric Heien 2002-12-18 21:05:18 +00:00
parent c5c3620f23
commit 1f06763126
1 changed files with 19 additions and 5 deletions

View File

@ -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"))) {