00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #define NEED_PACKAGE_INFO
00025
00026 #ifdef HAVE_CONFIG_H
00027 # include "config.h"
00028 #endif
00029
00030 #ifdef HAVE_IOSTREAM
00031 # include <iostream>
00032 #else
00033 # include <iostream.h>
00034 #endif
00035
00036 #ifdef HAVE_STDLIB_H
00037 # include <stdlib.h>
00038 #endif
00039
00040 #ifdef HAVE_STD_IOSTREAM
00041 using namespace std;
00042 #endif
00043
00044 void usage(int argc, char **argv)
00045 {
00046 cerr<<
00047 "\nRun the omniIFR server.\n"
00048 "syntax: "<<(argc?argv[0]:"omniIFR")
00049 <<" OPTIONS -ORBendPoint giop:tcp::11173\n"
00050 "OPTIONS:\n"
00051 #ifndef __WIN32__
00052 " -f Stay in the foreground.\n"
00053 " -l PATH full path to data directory [/var/lib/omniifr]\n"
00054 " -P PIDFILE keep track of running instance in PIDFILE.\n"
00055 #endif
00056 " -r read only mode.\n"
00057 " -t FILE Send trace messages to FILE instead of syslog.\n"
00058 " -V display version\n"
00059 " -h display this help text\n" << endl;
00060 exit(-1);
00061 }
00062
00063
00064 void version()
00065 {
00066 cerr<<PACKAGE_STRING<<"\nCopyright (C) 2004-2005 Alex Tingle"<<endl;
00067 exit(-1);
00068 }