summaryrefslogtreecommitdiff
path: root/src/options.cpp
blob: 89397f40094e44bb2d6d5eb5ca1009c607c533ff (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 aArgs )
{
    UnitNumber().run();

    exit( 0 );
}