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 81b63fa commit 630d436
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blade.c
Expand Up @@ -253,7 +253,6 @@ int main(int argc, char *argv[]) {
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': {
show_usage(argv, false);
Expand Down Expand Up @@ -291,7 +290,8 @@ int main(int argc, char *argv[]) {
show_warnings = true;
break;
}
case ':': {
case ':':
case '?': {
total_break = 1;
break;
}
Expand All @@ -301,7 +301,7 @@ int main(int argc, char *argv[]) {
}
}

if(total_break) {
if(total_break == 1) {
break;
}
}
Expand Down

0 comments on commit 630d436

Please sign in to comment.