Skip Menu |

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

Report information
The Basics
Id: 126919
Status: new
Priority: 0/
Queue: App-Rad

People
Owner: Nobody in particular
Requestors: shlomif [...] shlomifish.org
Cc:
AdminCc:

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



Subject: App::Rad should be made more suitable for writing modules-as-cmdline-apps
Hi! Thanks for App::Rad. I tried using it for https://metacpan.org/pod/App::Git::Info (to avoid some boilerplate/scaffolding that I had in my other App::* modules) but ran into some issues. The remaining one is that I like to implement my scripts first as modules (see e.g https://perlmaven.com/modulino-both-script-and-module ) so I can do perl -MApp::Foo -e 'run()' -- --hello. However, App::Rad assumes it will be a standalone script and has the 'main' namespace hardcoded in several places. Can you look into fixing it? Thanks!