summaryrefslogtreecommitdiff
path: root/src/options.h
blob: 3012a581a6e275f0d5adae77af9470114a6e1a8d (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
#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;

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 );
};

#endif