aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/optparser.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/optparser.cpp b/src/tests/optparser.cpp
index f5df7ed..5c91351 100644
--- a/src/tests/optparser.cpp
+++ b/src/tests/optparser.cpp
@@ -40,6 +40,8 @@ public:
40 setOverride("str", "Bob!"); 40 setOverride("str", "Bob!");
41 41
42 addHelpOption(); 42 addHelpOption();
43
44 setNonOption( slot( this, &Opts::nonOption ) );
43 } 45 }
44 46
45 int yesparam( StrArray aParams ) 47 int yesparam( StrArray aParams )
@@ -54,6 +56,12 @@ public:
54 return 0; 56 return 0;
55 } 57 }
56 58
59 int nonOption( StrArray aParams )
60 {
61 sio << " - nonOption" << aParams << sio.nl;
62 return aParams.getSize()-1;
63 }
64
57 int iBob; 65 int iBob;
58 float dBob; 66 float dBob;
59 Bu::FString sVar; 67 Bu::FString sVar;