Skip to content

Commit

Permalink
Fix to print usage, if no params passed, instead of oddly doing nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Jun 18, 2020
1 parent fa71757 commit ec29744
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/webmin
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sub main {
if ($opt{'list'}) {
list_commands(\%opt);
exit 0;
} elsif ($opt{'man'} || $opt{'help'}) {
} elsif ($opt{'man'} || $opt{'help'} || !defined($remain[0])) {
# Show the full manual page
man_command(\%opt, $subcmd);
exit 0;
Expand Down Expand Up @@ -253,6 +253,6 @@ non-0 on error
=head1 LICENSE AND COPYRIGHT
Copyright 2018 Jamie Cameron <[email protected]>, Joe Cooper
Copyright 2020 Jamie Cameron <[email protected]>, Joe Cooper
<[email protected]>.

0 comments on commit ec29744

Please sign in to comment.