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~