aboutsummaryrefslogtreecommitdiff
path: root/src/optparser.h
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/optparser.h
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/optparser.h')
-rw-r--r--src/optparser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/optparser.h b/src/optparser.h
index 89ef14d..6b0ae58 100644
--- a/src/optparser.h
+++ b/src/optparser.h
@@ -81,6 +81,7 @@ namespace Bu
81 OptionSignal sUsed; 81 OptionSignal sUsed;
82 _ValueProxy *pProxy; 82 _ValueProxy *pProxy;
83 Bu::FString sOverride; 83 Bu::FString sOverride;
84 Bu::FString sHelpDefault;
84 }; 85 };
85 86
86 private: 87 private:
@@ -157,6 +158,8 @@ namespace Bu
157 void setOverride( char cOpt, const Bu::FString &sOverride ); 158 void setOverride( char cOpt, const Bu::FString &sOverride );
158 void setOverride( const Bu::FString &sOpt, 159 void setOverride( const Bu::FString &sOpt,
159 const Bu::FString &sOverride ); 160 const Bu::FString &sOverride );
161
162 void setHelpDefault( const Bu::FString &sOpt, const Bu::FString &sTxt );
160 163
161 void addHelpOption( char c='h', const Bu::FString &s="help", 164 void addHelpOption( char c='h', const Bu::FString &s="help",
162 const Bu::FString &sHelp="This help." ); 165 const Bu::FString &sHelp="This help." );