summaryrefslogtreecommitdiff
path: root/src/options.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-01-04 23:30:24 -0700
committerMike Buland <eichlan@xagasoft.com>2012-01-04 23:30:24 -0700
commitef56ac3105dbd72cc5989edef9bbbb3fedfe6449 (patch)
treeff4e3f346f69bf3f6d05c3cee839d4e39302efd1 /src/options.cpp
parentccc0661a64b6acc0dd9708b1ab32a72e0a016e9c (diff)
downloadstage-ef56ac3105dbd72cc5989edef9bbbb3fedfe6449.tar.gz
stage-ef56ac3105dbd72cc5989edef9bbbb3fedfe6449.tar.bz2
stage-ef56ac3105dbd72cc5989edef9bbbb3fedfe6449.tar.xz
stage-ef56ac3105dbd72cc5989edef9bbbb3fedfe6449.zip
Demo is being reworked. Fixed comment handling.
Diffstat (limited to 'src/options.cpp')
-rw-r--r--src/options.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.cpp b/src/options.cpp
index 23a98a8..f5fb127 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -25,10 +25,12 @@ void Options::parse( int argc, char *argv[] )
25 " - Simple, Textual, Adventure Game Environment"); 25 " - Simple, Textual, Adventure Game Environment");
26 opt.addHelpBanner("usage: " + Bu::String(argv[0]) + 26 opt.addHelpBanner("usage: " + Bu::String(argv[0]) +
27 " [options] <filename>\n"); 27 " [options] <filename>\n");
28
28 opt.addOption( Bu::slot( this, &Options::version ), "version", 29 opt.addOption( Bu::slot( this, &Options::version ), "version",
29 "Show full version info." ); 30 "Show full version info." );
30 opt.addOption( Bu::slot( this, &Options::builtins ), "builtins", 31 opt.addOption( Bu::slot( this, &Options::builtins ), "builtins",
31 "List available builtins." ); 32 "List available builtins." );
33
32 opt.addHelpOption('h', "help"); 34 opt.addHelpOption('h', "help");
33 opt.setNonOption( Bu::slot( this, &Options::nonOption ) ); 35 opt.setNonOption( Bu::slot( this, &Options::nonOption ) );
34 opt.parse( argc, argv ); 36 opt.parse( argc, argv );