Skip to content

Commit

Permalink
Parameter parsing improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
inflex committed May 5, 2019
1 parent b9795ce commit 0951b70
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/openboardview/main_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ int parse_parameters(int argc, char **argv, struct globals *g) {
exit(0);
}

// Configuration file (alternative)
if (strcmp(p, "-c") == 0) {
param++;
if ((param < argc)&&(argv[param][0] != '-')) {
Expand Down Expand Up @@ -181,13 +180,6 @@ int parse_parameters(int argc, char **argv, struct globals *g) {
} else if (strcmp(p, "-d") == 0) {
g->debug = true;

/*
* for extended parameters, nothing yet required
*
*
} else if (strncmp(p,"--", 2) == 0) {
*/
} else {
fprintf(stderr, "Unknown parameter '%s'\n\n%s %s", p, argv[0], help);
exit(1);
Expand Down

0 comments on commit 0951b70

Please sign in to comment.