From 4e183dbc4cf61855bd4353017683e02f19f89461 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 4 Jan 2012 01:27:25 -0700 Subject: Mingw builds automaticaly now. --- src/options.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/options.cpp') 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[] ) " [options] \n"); opt.addOption( Bu::slot( this, &Options::version ), Bu::String("version"), Bu::String("Show the version info.") ); opt.addHelpOption('h', "help"); + opt.setNonOption( Bu::slot( this, &Options::nonOption ) ); opt.parse( argc, argv ); } @@ -41,3 +42,10 @@ int Options::version( Bu::StrArray aArgs ) return 0; } +int Options::nonOption( Bu::Array aArgs ) +{ + sFile = aArgs[0]; + + return 0; +} + -- cgit v1.2.3