Merge pull request #15 from EliGitHub1/argument-parser-cpp

clean unused var and made for loop more readable
bayerphase
David Newman 2019-03-03 08:50:54 -08:00 zatwierdzone przez GitHub
commit e956c5961b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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();