add -W and -X to -h output; fix other pod omissions
authorGurusamy Sarathy <gsar@cpan.org>
Tue, 22 Feb 2000 19:51:47 +0000 (19:51 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Tue, 22 Feb 2000 19:51:47 +0000 (19:51 +0000)
p4raw-id: //depot/perl@5211

perl.c
pod/perlrun.pod

diff --git a/perl.c b/perl.c
index d1bbb27..3b47644 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -1907,6 +1907,8 @@ S_usage(pTHX_ char *name)         /* XXX move this out into a module ? */
 "-v              print version, subversion (includes VERY IMPORTANT perl info)",
 "-V[:variable]   print configuration summary (or a single Config.pm variable)",
 "-w              enable many useful warnings (RECOMMENDED)",
+"-W              enable all warnings",
+"-X              disable all warnings",
 "-x[directory]   strip off text before #!perl line and perhaps cd to directory",
 "\n",
 NULL
index 7767404..5cc1969 100644 (file)
@@ -575,10 +575,11 @@ enables rudimentary switch parsing for switches on the command
 line after the program name but before any filename arguments (or before
 a B<-->).  Any switch found there is removed from @ARGV and sets the
 corresponding variable in the Perl program.  The following program
-prints "true" if and only if the program is invoked with a B<-xyz> switch.
+prints "1" if the program is invoked with a B<-xyz> switch, and "abc"
+if it is invoked with B<-xyz=abc>.
 
     #!/usr/bin/perl -s
-    if ($xyz) { print "true\n" }
+    if ($xyz) { print "$xyz\n" }
 
 =item B<-S>
 
@@ -705,12 +706,12 @@ that.
 
 =item B<-W>
 
-Enables all warnings regardless of 
+Enables all warnings regardless of C<no warnings> or C<$^W>.
 See L<perllexwarn>.
 
 =item B<-X>
 
-Disables all warnings regardless of 
+Disables all warnings regardless of C<use warnings> or C<$^W>.
 See L<perllexwarn>.
 
 =item B<-x> I<directory>