Skip to content

Commit

Permalink
Updated install script
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfriend99 committed Feb 23, 2024
1 parent 6abff9f commit 81b63fa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/blade.c
Expand Up @@ -250,8 +250,9 @@ int main(int argc, char *argv[]) {
int next_gc_start = DEFAULT_GC_START;

if (argc > 1) {
int opt;
while ((opt = getopt(argc, argv, "hdeb:vg:wc:")) != -1) {
opterr = 0;
int opt, total_break = 0;
while ((opt = getopt(argc, argv, ":hdeb:vg:wc:")) != -1) {
printf("Opt = %d\n", opt);
switch (opt) {
case 'h': {
Expand Down Expand Up @@ -290,11 +291,19 @@ int main(int argc, char *argv[]) {
show_warnings = true;
break;
}
case ':': {
total_break = 1;
break;
}
default: {
show_usage(argv, true); // exits
break;
}
}

if(total_break) {
break;
}
}
}

Expand Down

0 comments on commit 81b63fa

Please sign in to comment.