Author: particle Date: 2009-01-02 15:15:35 +0100 (Fri, 02 Jan 2009) New Revision: 24734
Modified: docs/Perl6/Spec/S06-routines.pod docs/Perl6/Spec/S19-commandline.pod Log: [spec] options must appear before script name; update version/date metadata Modified: docs/Perl6/Spec/S06-routines.pod =================================================================== --- docs/Perl6/Spec/S06-routines.pod 2009-01-02 13:46:16 UTC (rev 24733) +++ docs/Perl6/Spec/S06-routines.pod 2009-01-02 14:15:35 UTC (rev 24734) @@ -13,9 +13,9 @@ Maintainer: Larry Wall <la...@wall.org> Date: 21 Mar 2003 - Last Modified: 27 Dec 2008 + Last Modified: 2 Jan 2009 Number: 6 - Version: 98 + Version: 99 This document summarizes Apocalypse 6, which covers subroutines and the Modified: docs/Perl6/Spec/S19-commandline.pod =================================================================== --- docs/Perl6/Spec/S19-commandline.pod 2009-01-02 13:46:16 UTC (rev 24733) +++ docs/Perl6/Spec/S19-commandline.pod 2009-01-02 14:15:35 UTC (rev 24734) @@ -14,8 +14,8 @@ Maintainer: Jerry Gay <jerry....@rakudoconsulting.com> Date: 12 Dec 2008 - Last Modified: 31 Dec 2008 - Version: 6 + Last Modified: 2 Jan 2009 + Version: 7 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 @@ -70,21 +70,12 @@ line, but it is made available at run-time in the read-only C<$?PROGRAM> variable. -Command line I<arguments> are further broken down into I<options> and -I<values>. Unlike Perl 5, I<options> and I<values> may be intermixed on the -command line. This mirrors the Perl 6 argument syntax for Routines, which -allows named and positional parameters to be intermixed. The recommendation -for parameter ordering applies here as well, with a slight twist: keep all -command line options together, even though this is not enforced, in order to -avoid confusion. +Command line I<arguments> are broken down into I<options> and I<values>. +Each option may take zero or more values. After all options have been +processed, the remaining values (if any) generally consist of the name of a +script, followed by arguments for that script. -[ This policy may be counter-intuitive to current comand-line cultures. ] -{{ 'ack' is a notable exception to the old rule, and i like the freedom. -besides, perl 6 is about looking forward, and creating a new culture. :) -on the other hand, i won't fight to keep this if it doesn't get support. }} - - =head1 Backward (In)compatibility Muscles have a long memory. You may find yourself typing your favorite Perl 5