Skip to content

Commit

Permalink
p6doc -h|--help shows a useful USAGE message
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkin committed Dec 31, 2016
1 parent bb8e1eb commit f4aa4a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/p6doc
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ sub show-docs(Str $path, :$section, :$no-pager) {
shell $doc-command-str;
}

multi sub MAIN() {

sub USAGE() {
say 'What documentation do you want to read?';
say "Examples: $PROGRAM-NAME Str";
say " $PROGRAM-NAME Str.split";
Expand Down

0 comments on commit f4aa4a2

Please sign in to comment.