develooper Front page | perl.qa | Postings from November 2007

Re: Providing command-line arguments to tests run via 'prove'

Thread Previous | Thread Next
From:
Salve J Nilsen
Date:
November 29, 2007 02:47
Subject:
Re: Providing command-line arguments to tests run via 'prove'
Message ID:
Pine.LNX.4.62.0711291137230.16628@decibel.pvv.ntnu.no
Smylers said:
>
> The convention of using '--' to mean 'that's the end of my own
> arguments' neatly avoids all of these issues.

FWIW, I'm with Smylers here. '--' has been around for many years as a 
command-line convention for "signifying the end of options." (from 
bash(1)).

/me likes gentle learning curves, and would like to see command-line 
interface consistency; not just within the Perl sphere, but in general.


- Salve, who thinks command-line options deserve the same amount of
          attention as programming API's and over-the-wire protocols.

-- 
#!/usr/bin/perl
sub AUTOLOAD{$AUTOLOAD=~/.*::(\d+)/;seek(DATA,$1,0);print#  Salve Joshua Nilsen
getc DATA}$"="'};&{'";@_=unpack("C*",unpack("u*",':4@,$'.#     <sjn@foo.no>
'2!--"5-(50P%$PL,!0X354UC-PP%/0\`'."\n"));eval "&{'@_'}";   __END__ is near! :)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About