Add extendend param option

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti 2023-05-29 02:27:32 +02:00
parent 72f486f9bf
commit 151f0c0e6f

View File

@ -117,7 +117,7 @@ int main(int argc, char** argv) {
initParameter(&param); initParameter(&param);
for(int i = 0; i < argc; i++) { for(int i = 0; i < argc; i++) {
if((strcmp(argv[i], "-p") == 0)) { if((strcmp(argv[i], "-p") == 0) || (strcmp(argv[i], "--param") == 0)) {
readParameter(&param, argv[++i]); readParameter(&param, argv[++i]);
continue; continue;
} }