blob: 4fcf1e22a51f9d9ff13f57680147013d480b3a8c (
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
|
#include "options.h"
#include "unitnumber.h"
#include <stdlib.h>
Options::Options( int argc, char *argv[] )
{
addOption( Bu::slot(this, &Options::selfTest), "self-test",
"Run a series of tests to ensure everything is working correctly.");
addHelpOption('h', "help", "This help");
parse( argc, argv );
}
Options::~Options()
{
}
int Options::selfTest( Bu::StringArray )
{
UnitNumber().run();
exit( 0 );
}
|