Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

usage.cc

Go to the documentation of this file.
00001 //                            Package   : omniIFR
00002 //  usage.cc                  Created   : 2004/04/05
00003 //                            Author    : Alex Tingle
00004 //
00005 //    Copyright (C) 2004 Alex Tingle.
00006 //
00007 //    This file is part of the omniIFR application.
00008 //
00009 //    omniIFR is free software; you can redistribute it and/or
00010 //    modify it under the terms of the GNU Lesser General Public
00011 //    License as published by the Free Software Foundation; either
00012 //    version 2.1 of the License, or (at your option) any later version.
00013 //
00014 //    omniIFR is distributed in the hope that it will be useful,
00015 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 //    Lesser General Public License for more details.
00018 //
00019 //    You should have received a copy of the GNU Lesser General Public
00020 //    License along with this library; if not, write to the Free Software
00021 //    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
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> // exit()
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 }

Generated on Fri Mar 4 13:03:24 2005 for OmniIFR by  doxygen 1.4.1