Skip to content

Commit

Permalink
Merge pull request #15 from EliGitHub1/argument-parser-cpp
Browse files Browse the repository at this point in the history
clean unused var and made for loop more readable
  • Loading branch information
dnewman-gpsw committed Mar 3, 2019
2 parents dfb93e9 + 42cac77 commit e956c59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/app/common/argument_parser/argument_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ void argument_parser::set_options()

int argument_parser::parse(int argc, char *argv [], const char* application_text, const char* prefix_text)
{
application_path = argv[0];
argument_count = argc;

for (int i = 0; i < argc; i++)
for (int i = 0; i < argument_count; i++)
arguments[i] = argv[i];

set_options();
Expand Down

0 comments on commit e956c59

Please sign in to comment.