From e9909bbad1a57b7c57341349fab033779f1f7aac Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Sun, 22 Jul 2012 21:01:26 -0700 Subject: [PATCH] Added helper function for finding long option. --- include/bx/commandline.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/bx/commandline.h b/include/bx/commandline.h index 2f152c6..1133528 100644 --- a/include/bx/commandline.h +++ b/include/bx/commandline.h @@ -26,6 +26,12 @@ namespace bx { } + const char* findOption(const char* _long, int _numParams = 1) + { + const char* result = _findOption('\0', _long, _numParams); + return result; + } + const char* findOption(const char _short, const char* _long = NULL, int _numParams = 1) { const char* result = _findOption(_short, _long, _numParams);