Changeset 7606 for lib/pugs/run.pod

Show
Ignore:
Timestamp:
10/14/05 13:01:26 (3 years ago)
Author:
autrijus
Message:

* Add notes to Perl6::Pugs and pugs::run documentation about

the use of -- to separate pugs options and program options.
Reported by r0nny.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lib/pugs/run.pod

    r7342 r7606  
    2424WRITEME 
    2525 
     26=head2 Flags separation 
     27 
     28Pugs uses C<--> to separate flags of Pugs itself and arguments to the program. 
     29For example, this will print C<--help>: 
     30 
     31    $ pugs -e 'say @ARGS' -- --help 
     32 
     33But this will show the help message of Pugs: 
     34 
     35    $ pugs -e 'say @ARGS' --help 
     36 
     37For the same reason, to use Pugs in the Unix C<#!> line, add an extra C<--> 
     38after it: 
     39 
     40    #!/usr/bin/pugs -- 
     41    say 'Hello, ', @ARGS, '!'; 
     42 
    2643=head2 Command line options 
    2744