Skip to content

Commit db1f646

Browse files
authored
Merge pull request #51 from radustoenescu/cherry-picks
Fix location of help(-h) option parsing.
2 parents c6435b9 + bd21e73 commit db1f646

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/common_params.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ void parse_cmdline_args(int argc, char **argv,
156156
dest = (char *)&cfg->progsec;
157157
strncpy(dest, optarg, sizeof(cfg->progsec));
158158
break;
159-
case 'h':
160-
full_help = true;
161-
/* fall-through */
162159
case 'L': /* --src-mac */
163160
dest = (char *)&cfg->src_mac;
164161
strncpy(dest, optarg, sizeof(cfg->src_mac));
@@ -167,6 +164,9 @@ void parse_cmdline_args(int argc, char **argv,
167164
dest = (char *)&cfg->dest_mac;
168165
strncpy(dest, optarg, sizeof(cfg->dest_mac));
169166
break;
167+
case 'h':
168+
full_help = true;
169+
/* fall-through */
170170
error:
171171
default:
172172
usage(argv[0], doc, options_wrapper, full_help);

0 commit comments

Comments
 (0)