Skip to content
Permalink
Browse files

Tell if there's no useful documentation created

Which can happen if the only MAIN as a "hidden-from-USAGE"
  • Loading branch information...
lizmat committed Oct 12, 2018
1 parent a245bc1 commit 243a2f01dba06fbbd6660f6c1eeb59d52197996e
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/Main.pm6
@@ -242,7 +242,9 @@ my sub RUN-MAIN(&main, $mainline, :$in-as-argsfiles) {
@help-msgs.append(@arg-help.map: { ' ' ~ .key ~ ' ' x ($offset - .key.chars) ~ .value });
}

"Usage:\n" ~ @help-msgs.map(' ' ~ *).join("\n")
@help-msgs
?? "Usage:\n" ~ @help-msgs.map(' ' ~ *).join("\n")
!! "No usage information could be determined"
}

sub has-unexpected-named-arguments($signature, %named-arguments) {

0 comments on commit 243a2f0

Please sign in to comment.
You can’t perform that action at this time.