version 1.34.2.5, 2001/08/20 02:38:07
|
version 1.34.2.6, 2001/08/21 13:45:40
|
|
|
FileSystem::translateSlashes(pegasusHome); | FileSystem::translateSlashes(pegasusHome); |
} | } |
| |
|
void SetEnvironmentVariables( |
|
const char* arg0) |
|
{ |
|
cout << "PEGASUS_HOME is now " << arg0 << endl; |
|
setenv("PEGASUS_HOME",arg0,0); |
|
} |
|
|
/** GetOptions function - This function defines the Options Table | /** GetOptions function - This function defines the Options Table |
and sets up the options from that table using the config manager. | and sets up the options from that table using the config manager. |
*/ | */ |
|
|
usage.append (" options\n"); | usage.append (" options\n"); |
usage.append (" -v - displays pegasus version number\n"); | usage.append (" -v - displays pegasus version number\n"); |
usage.append (" -h - prints this help message\n"); | usage.append (" -h - prints this help message\n"); |
|
usage.append (" -D [home] - sets pegasus home directory\n"); |
usage.append (" -t - turns tracing on\n"); | usage.append (" -t - turns tracing on\n"); |
usage.append (" -t - turns on trace of client IO to console\n"); | usage.append (" -t - turns on trace of client IO to console\n"); |
usage.append (" -l - turns on trace of client IO to trace file\n"); | usage.append (" -l - turns on trace of client IO to trace file\n"); |
|
|
{ | { |
if (i + 1 < argc) | if (i + 1 < argc) |
{ | { |
pegasusHome = argv[i + 1]; |
pegasusHome.assign(argv[i + 1]); |
|
SetEnvironmentVariables(argv[i + 1]); |
} | } |
else | else |
{ | { |