Author: particle Date: 2009-02-09 00:58:04 +0100 (Mon, 09 Feb 2009) New Revision: 25249
Modified: docs/Perl6/Spec/S19-commandline.pod Log: [S19] various minor updates and removal of stale comments Modified: docs/Perl6/Spec/S19-commandline.pod =================================================================== --- docs/Perl6/Spec/S19-commandline.pod 2009-02-08 20:37:02 UTC (rev 25248) +++ docs/Perl6/Spec/S19-commandline.pod 2009-02-08 23:58:04 UTC (rev 25249) @@ -14,8 +14,8 @@ Maintainer: Jerry Gay <jerry....@rakudoconsulting.com> Date: 12 Dec 2008 - Last Modified: 4 Feb 2009 - Version: 21 + Last Modified: 8 Feb 2009 + Version: 22 This is a draft document. This document describes the command line interface. It has changed extensively from previous versions of Perl in order to increase @@ -158,7 +158,7 @@ =item -E *line* Execute a line of code, with all features enabled. This is specific to -Perl 5.10, and not relevant to Perl 6. +Perl 5.10, and not relevant to Perl 6, where C<-e> performs this function. =item -i *extension* @@ -180,19 +180,14 @@ =item -s Enable rudimentary switch parsing. By default, Perl 6 parses the -arguments passed to a script using the rules defined in this document, -rendering this switch obsolete. +arguments passed to a script using the signature suppied by the user +in the MAIN routine (see L<S06-subroutines/"Declaring a MAIN subroutine">). -=for consideration -[This is a bit misleading, insofar as the script's switches are generally -parsed by the signature suppied by the user in the MAIN routine, -as in S06. --law] - =item -t Enable taint warnings mode. Taint mode needs more thought, but it's much more likely that the C<-T> switch will take options rather than -use a second command-line flag for similar behavior. +use a second command-line flag to implement related behavior. =item -u @@ -219,10 +214,7 @@ =back -{{TODO for the removed Perl 5 options, address how the same functionality -can be expressed with the command-line syntax}} - =head1 Options and Values Command line options are parsed using the following rules: @@ -528,15 +520,13 @@ and C<BUG>. Implementations may expose other components via this interface, so consult the documentation for your Perl 6 implementation. -{{TODO more description and examples}} - On command line... Subsystem gets... ++X a -b ++/X a -b # Nested options +++X a -b ++X -c ++/X -d e +++/X a -b ++X -c ++/X -d e - # More than once + # More than once (both are valid, but the second form is preferred) ++X a -b ++/X -c ++X -d e ++/X a -b -d e +++X a -b +++/X -c ++X -d e ++/X a -b -d e