mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Merge branch 'master' of github.com:bkaradzic/bx
This commit is contained in:
@@ -60,6 +60,12 @@ namespace bx
|
||||
///
|
||||
bool hasArg(bool& _value, const char _short, const char* _long = NULL) const;
|
||||
|
||||
///
|
||||
int32_t getNum() const;
|
||||
|
||||
///
|
||||
char const* get(int32_t _idx) const;
|
||||
|
||||
private:
|
||||
///
|
||||
const char* find(int32_t _skip, const char _short, const char* _long, int32_t _numParams) const;
|
||||
|
||||
@@ -319,4 +319,14 @@ namespace bx
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int32_t CommandLine::getNum() const
|
||||
{
|
||||
return m_argc;
|
||||
}
|
||||
|
||||
char const* CommandLine::get(int32_t _idx) const
|
||||
{
|
||||
return m_argv[_idx];
|
||||
}
|
||||
|
||||
} // namespace bx
|
||||
|
||||
Reference in New Issue
Block a user