Hi Ricardo,
Ricardo SIGNES via RT schrieb:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=35529 >
>
> * Karl Gaissmaier via RT <bug-App-Cmd@rt.cpan.org> [2008-04-29T17:44:56]
>> as I see, the code for App::Cmd in your git repo is far ahead
>> to the current CPAN release. Could you please release it as a developer
>> release to CPAN?
>
> Yes, but keep in mind that I might change it a whole whole lot. :)
fine. Then I don't hesitate to ask for a feature request ;-)
Could you support git style commands like git-status, git-commit,
git-whatever?
I tried this already for my CLI app, but I had to override at least
one private method in App::Cmd:
Show quoted text> # allow dashed cmds
> # sorry to override private methods
> sub _cmd_from_args {
> my ( $app, $args ) = @_;
>
> return $app->SUPER::_cmd_from_args($args) unless $app->_dashed_cmd();
>
> # handle git like dashed commands: git-status, ...
> my $command = $app->_dashed_cmd();
> return ( $command, $args );
> }
OK, I know, this get problems with the usage() for global options
and cmd specific options. But as you told me:
Show quoted text> I might change it a whole whole lot. :)
Best Regards
Charly
BTW: I like the idea behind App::Cmd