lRem has asked for the wisdom of the Perl Monks concerning the following question:

Catalyst PAR archives seem to be the best idiotfriendly way to distribute your app. They're convenient, self-contained, hard to break. But the last step to ultimate idiotfriendliness is missing - they do require some command line options to be usable. I didn't find it in documentation, so I ask you to share the knowledge:
Is there any non-hackish way to set default script and options for Catalyst PAR archive? Or at least for the pp resulting binary?
Example:
lrem@lrem ~/LNE $ make catalyst_par include /home/lrem/LNE/inc/Module/Install.pm Writing PAR "lne.par" lrem@lrem ~/LNE $ pp -o lne lne.par lrem@lrem ~/LNE $ ./lne Usage: [parl] lne[.par] [script] [arguments] Examples: parl lne.par lne_server.pl -r myapp lne_cgi.pl Available scripts: lne_cgi.pl lne_create.pl lne_fastcgi.pl lne_server.pl lne_test.pl lrem@lrem ~/LNE $
Now, what I want is that in the last step just running the program (probably by leftclicking in some KDE) would be equivalent to what now takes ./lne lne_server.pl 80.
--
Someday, people who know how to use computers will rule over those who don't. And there will be a special name for them: secretaries. -Dilbert quote

Replies are listed 'Best First'.
Re: How to run a default script in Catalyst PAR?
by Anonymous Monk on Feb 12, 2007 at 04:31 UTC
      You didn't get it... So I update the question, it really can be not clear to someone who didn't toy with Catalyst.
      --
      Someday, people who know how to use computers will rule over those who don't. And there will be a special name for them: secretaries. -Dilbert quote