mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion/simulator] Ignore empty cli arguments
This commit is contained in:
@@ -24,8 +24,10 @@ public:
|
||||
const char * pop(const char * key);
|
||||
bool popFlag(const char * flag);
|
||||
void push(const char * key, const char * value) {
|
||||
m_arguments.push_back(key);
|
||||
m_arguments.push_back(value);
|
||||
if (key != nullptr && value != nullptr) {
|
||||
m_arguments.push_back(key);
|
||||
m_arguments.push_back(value);
|
||||
}
|
||||
}
|
||||
void push(const char * argument) { m_arguments.push_back(argument); }
|
||||
int argc() const { return m_arguments.size(); }
|
||||
|
||||
Reference in New Issue
Block a user