summaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.cpp')
-rw-r--r--src/options.cpp8
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
45int Options::nonOption( Bu::Array<Bu::String> aArgs )
46{
47 sFile = aArgs[0];
48
49 return 0;
50}
51