Skip to content

Commit

Permalink
House cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
dr8co committed Feb 16, 2023
1 parent ad20b59 commit f62141d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main(__attribute__((unused)) int argc, char **argv) {
exit(EXIT_FAILURE);
}
// Print help if the shell was called with 'help' argument on the command line.
if (argv[1]) {
if (argc > 1) {
if (str_cmp(argv[1], "help") == 0)
find_help(NULL);
}
Expand Down

0 comments on commit f62141d

Please sign in to comment.