2 // options.hxx -- class to handle command line options
4 // Written by Curtis Olson, started April 1998.
6 // Copyright (C) 1998 Curtis L. Olson - curt@me.umn.edu
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 // (Log is kept at end of this file)
31 # error This library requires C++
35 #define FG_OPTIONS_OK 0
36 #define FG_OPTIONS_HELP 1
37 #define FG_OPTIONS_ERROR 2
47 // Offset true time by this many seconds
53 // Parse the command line options
54 int parse( int argc, char **argv );
56 // Print usage message
65 extern fgOPTIONS current_options;
68 #endif /* _OPTIONS_HXX */
72 // Revision 1.1 1998/04/24 00:49:21 curt
73 // Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
74 // Trying out some different option parsing code.
75 // Some code reorganization.