Skip Menu |
 

This queue is for tickets about the App-Rad CPAN distribution.

Report information
The Basics
Id: 40824
Status: resolved
Priority: 0/
Queue: App-Rad

People
Owner: garu [...] cpan.org
Requestors: notbenh [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: there should be a way to get argv with out options
Download (untitled) / with headers
text/plain 297b
Currently $c->argv returns the entire array of what was passed, including the stuff that was plucked to build $c->options. It would be handy to not have to do this: my @argv = grep{m/^[^-]/} @{ $c->argv }; Again great package, it helps out a lot, just listing things as I think of them. -- benh~
Download (untitled) / with headers
text/plain 862b
Fixed in 0.7. Now there are four ways to get the user's arguments: - @ARGV (App::Rad already strips from @ARGV the command name itself) - $c->options (any arguments received in a getopt fashion) - $c->argv (everything else received - as requested!) - $c->getopt (standard Getopt::Long interface) I also updated the documentation and added some tests for this behavior so it should work as you expect from now on. Thanks for the report! Please reopen this ticket if I missed something. -b On Mon Nov 10 20:07:04 2008, NOTBENH wrote: Show quoted text
> Currently $c->argv returns the entire array of what was passed, > including the stuff that was plucked to build $c->options. It would be > handy to not have to do this: > > my @argv = grep{m/^[^-]/} @{ $c->argv }; > > Again great package, it helps out a lot, just listing things as I think > of them. > -- > benh~
Subject: Re: [rt.cpan.org #40824] there should be a way to get argv with out options
Date: Thu, 13 Nov 2008 12:51:10 -0800
To: bug-App-Rad [...] rt.cpan.org
From: benh <ben.hengst [...] gmail.com>
Download (untitled) / with headers
text/plain 1.1k
nope that seems to catch it all, thanks for that. On Wed, Nov 12, 2008 at 5:56 PM, Breno G. de Oliveira via RT <bug-App-Rad@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=40824 > > > Fixed in 0.7. Now there are four ways to get the user's arguments: > > - @ARGV (App::Rad already strips from @ARGV the command name itself) > > - $c->options (any arguments received in a getopt fashion) > > - $c->argv (everything else received - as requested!) > > - $c->getopt (standard Getopt::Long interface) > > I also updated the documentation and added some tests for this behavior > so it should work as you expect from now on. > > Thanks for the report! Please reopen this ticket if I missed something. > > -b > > On Mon Nov 10 20:07:04 2008, NOTBENH wrote:
>> Currently $c->argv returns the entire array of what was passed, >> including the stuff that was plucked to build $c->options. It would be >> handy to not have to do this: >> >> my @argv = grep{m/^[^-]/} @{ $c->argv }; >> >> Again great package, it helps out a lot, just listing things as I think >> of them. >> -- >> benh~
>
-- benh~ http://three.sentenc.es/
Great! Thanks for the report, keep 'em coming :)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.