Skip to content

Commit

Permalink
smcroutectl: drop bogus warning when using help command with arg.
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Aug 15, 2021
1 parent 06fe548 commit 4b6ee0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/smcroutectl.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ int main(int argc, char *argv[])

default:
cmd = &args[i];
if (help)
goto help;
if (argc - (pos + 1) < args[i].min_args) {
warnx("Not enough arguments to command %s", nm);
status = 1;
Expand Down

0 comments on commit 4b6ee0f

Please sign in to comment.