Skip to content

Commit

Permalink
fix #10 s0c4
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Kelosky <[email protected]>
  • Loading branch information
dkelosky committed Jan 24, 2025
1 parent 1abb21e commit 0b7728a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions native/c/zcli.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ class ZCLIRequired

public:
ZCLIRequired() { required = false; }
void set_found(bool f) { found = f; }
virtual void set_found(bool f)
{
found = f;
}
bool is_found() { return found; }

void set_required(bool r) { required = r; }
Expand Down Expand Up @@ -250,11 +253,11 @@ bool ZCLI::validate()
}

map<string, int> option_map;
map<string, int> alias_map;

for (vector<ZCLIOption>::iterator iiit = iit->get_options().begin(); iiit != iit->get_options().end(); iiit++)
{

map<string, int> alias_map;
for (vector<string>::iterator iiiit = iiit->get_aliases().begin(); iiiit != iiit->get_aliases().end(); iiiit++)
{
if (alias_map.find(*iiiit) != (alias_map.end()))
Expand Down

0 comments on commit 0b7728a

Please sign in to comment.