blob: bf9825f158ae45c97798ce40212ce61d4ccdb7c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef OPTIONS_H
#define OPTIONS_H
#include <bu/singleton.h>
#include <bu/string.h>
#include <bu/array.h>
class Options : public Bu::Singleton<Options>
{
friend class Bu::Singleton<Options>;
private:
Options();
virtual ~Options();
public:
void parse( int argc, char *argv[] );
Bu::String sFile;
Bu::String sInterface;
Bu::String sCommand;
protected:
int version( Bu::Array<Bu::String> aArgs );
int builtins( Bu::Array<Bu::String> aArgs );
int smlTest( Bu::Array<Bu::String> aArgs );
int nonOption( Bu::Array<Bu::String> aArgs );
int printResult( Bu::Array<Bu::String> aArgs );
};
#endif
|