# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #113954]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=113954 >


$ perl6 -e 'multi MAIN("foo bar") {}' foo bar
Usage:
  -e '...' foo bar
$ perl6 -e 'multi MAIN("foo bar") { say "OH HAI" }' 'foo bar'
OH HAI
$

The usage message is confusing because it suggests exactly the
sequence of arguments that failed and triggered the message.
Shell-quoting the two words makes the invocation succeed. I suggest
the shell-quoting be included in the usage message -- but the exact
nature of the fix doesn't matter that much to me, the most important
thing is that usage message not suggest things that don't work.

Reply via email to