Skip to content

Commit

Permalink
Fix short version of "Dump Symbols" option.
Browse files Browse the repository at this point in the history
  • Loading branch information
OmniBlade committed Jan 9, 2024
1 parent 201fc23 commit 7093baa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ int main(int argc, char **argv)
{"config", required_argument, nullptr, 'c'},
{"section", required_argument, nullptr, 1},
{"listsections", no_argument, nullptr, 2},
{"dumpsyms", no_argument, nullptr, 3},
{"dumpsyms", no_argument, nullptr, 'd'},
{"verbose", no_argument, nullptr, 'v'},
{"help", no_argument, nullptr, 'h'},
{nullptr, no_argument, nullptr, 0},
};

int option_index = 0;

int c = getopt_long(argc, argv, "+hv?o:f:s:e:c:", long_options, &option_index);
int c = getopt_long(argc, argv, "+dhv?o:f:s:e:c:", long_options, &option_index);

if (c == -1) {
break;
Expand All @@ -107,7 +107,7 @@ int main(int argc, char **argv)
case 2:
print_secs = true;
break;
case 3:
case 'd':
dump_syms = true;
break;
case 'o':
Expand Down

0 comments on commit 7093baa

Please sign in to comment.