diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-04 01:27:25 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-04 01:27:25 -0700 |
commit | 4e183dbc4cf61855bd4353017683e02f19f89461 (patch) | |
tree | a6d7dbd236a11710f4a9a72fbd76fc700b4956e0 /src/options.cpp | |
parent | 90e4545e2e59462786169637fe58b574d07b9ee1 (diff) | |
download | stage-4e183dbc4cf61855bd4353017683e02f19f89461.tar.gz stage-4e183dbc4cf61855bd4353017683e02f19f89461.tar.bz2 stage-4e183dbc4cf61855bd4353017683e02f19f89461.tar.xz stage-4e183dbc4cf61855bd4353017683e02f19f89461.zip |
Mingw builds automaticaly now.0.01
Diffstat (limited to 'src/options.cpp')
-rw-r--r-- | src/options.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/options.cpp b/src/options.cpp index 0483759..42f58a2 100644 --- a/src/options.cpp +++ b/src/options.cpp | |||
@@ -26,6 +26,7 @@ void Options::parse( int argc, char *argv[] ) | |||
26 | " [options] <filename>\n"); | 26 | " [options] <filename>\n"); |
27 | opt.addOption( Bu::slot( this, &Options::version ), Bu::String("version"), Bu::String("Show the version info.") ); | 27 | opt.addOption( Bu::slot( this, &Options::version ), Bu::String("version"), Bu::String("Show the version info.") ); |
28 | opt.addHelpOption('h', "help"); | 28 | opt.addHelpOption('h', "help"); |
29 | opt.setNonOption( Bu::slot( this, &Options::nonOption ) ); | ||
29 | opt.parse( argc, argv ); | 30 | opt.parse( argc, argv ); |
30 | } | 31 | } |
31 | 32 | ||
@@ -41,3 +42,10 @@ int Options::version( Bu::StrArray aArgs ) | |||
41 | return 0; | 42 | return 0; |
42 | } | 43 | } |
43 | 44 | ||
45 | int Options::nonOption( Bu::Array<Bu::String> aArgs ) | ||
46 | { | ||
47 | sFile = aArgs[0]; | ||
48 | |||
49 | return 0; | ||
50 | } | ||
51 | |||