diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-28 21:25:22 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-04-28 21:25:22 +0000 |
commit | be98fb356a796bbf223f55e771e6c04069c84d0d (patch) | |
tree | 8af9228bfd6aef634ed28a9c9ff145423a6a78ff | |
parent | 5d3a0a3bf50d83f7940354621313a4c238b18081 (diff) | |
download | perl-be98fb356a796bbf223f55e771e6c04069c84d0d.tar.gz |
tweak change#5945 to display correct switch name in diagnostic
p4raw-link: @5945 on //depot/perl: 6df41af287665da86827e04cbbf0dae1bbd4c94e
p4raw-id: //depot/perl@6013
-rw-r--r-- | perl.c | 3 | ||||
-rw-r--r-- | pod/perldiag.pod | 8 |
2 files changed, 6 insertions, 5 deletions
@@ -2137,7 +2137,8 @@ Perl_moreswitches(pTHX_ char *s) } } else { if (s == start) - Perl_croak(aTHX_ "Module name required with -M option"); + Perl_croak(aTHX_ "Module name required with -%c option", + s[-1]); sv_catpvn(sv, start, s-start); sv_catpv(sv, " split(/,/,q{"); sv_catpv(sv, ++s); diff --git a/pod/perldiag.pod b/pod/perldiag.pod index cb4be0e238..1657c45109 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1871,11 +1871,11 @@ couldn't be created for some peculiar reason. (F) Only a bare module name is allowed as the first argument to a "use". -=item Module name required with -M option +=item Module name required with -%c option -(F) The C<-M> option says that Perl should load some module, but you -omitted the name of the module. Consult L<perlrun> for full details -about C<-M>. +(F) The C<-M> or C<-m> options say that Perl should load some module, but +you omitted the name of the module. Consult L<perlrun> for full details +about C<-M> and C<-m>. =item msg%s not implemented |