aboutsummaryrefslogtreecommitdiff
path: root/src/tests/optparser.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-01-15 18:30:31 +0000
committerMike Buland <eichlan@xagasoft.com>2010-01-15 18:30:31 +0000
commit42f921e3dad53405f67463f57eefd52b095ee11f (patch)
tree78c8c0308ee5867fa9359a679daa0680a8d62995 /src/tests/optparser.cpp
parent5471d34089277ad5c622fd9c392b9270229d9e3d (diff)
downloadlibbu++-42f921e3dad53405f67463f57eefd52b095ee11f.tar.gz
libbu++-42f921e3dad53405f67463f57eefd52b095ee11f.tar.bz2
libbu++-42f921e3dad53405f67463f57eefd52b095ee11f.tar.xz
libbu++-42f921e3dad53405f67463f57eefd52b095ee11f.zip
Documented more of MiniCron, and added some cool new help features to OptParser.
Diffstat (limited to 'src/tests/optparser.cpp')
-rw-r--r--src/tests/optparser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/optparser.cpp b/src/tests/optparser.cpp
index 5c91351..449677d 100644
--- a/src/tests/optparser.cpp
+++ b/src/tests/optparser.cpp
@@ -34,10 +34,11 @@ public:
34 true 34 true
35 ); 35 );
36 addOption( sVar, 's', "str", "Set a variable, see what it does."); 36 addOption( sVar, 's', "str", "Set a variable, see what it does.");
37 addOption( iBob, "bob", "Change iBob to wahtever you want."); 37 addOption( iBob, "bob", "Change iBob to whatever you want.");
38 addOption( dBob, 'd', "Change dBob to wahtever you want."); 38 addOption( dBob, 'd', "Change dBob to whatever you want.");
39 39
40 setOverride("str", "Bob!"); 40 setOverride("str", "Bob!");
41 setHelpDefault("bob", "=542");
41 42
42 addHelpOption(); 43 addHelpOption();
43 44