<div dir="ltr">Note I have put in a PR that implements all command line options by setting ENV:<div><a href="https://github.com/PerlDancer/Dancer2/pull/471">https://github.com/PerlDancer/Dancer2/pull/471</a><br></div><div>

<br></div><div>:D</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 6:19 PM, Slavik Goltser <span dir="ltr"><<a href="mailto:slavikg@gmail.com" target="_blank">slavikg@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think that using ENV to set options is not a bad idea, since they can be retrieved if needed (/proc/PID/environ) and keep the command line down. One of the popular methods in java land is to export the classpath as an environment variable (otherwise command lines get unbearably long).<br>


</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 7, 2013 at 8:05 AM, sawyer x <span dir="ltr"><<a href="mailto:xsawyerx@gmail.com" target="_blank">xsawyerx@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">That really is a tricky point... I'm not exactly sure, to be honest.<br></div><div class="gmail_extra">


<br><br><div class="gmail_quote"><div><div>On Tue, Sep 17, 2013 at 11:28 PM, Gideon D'souza <span dir="ltr"><<a href="mailto:gidisrael@gmail.com" target="_blank">gidisrael@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hey folks,<div><br></div><div>So I'm working on fixing issue #393:</div>
<div><a href="https://github.com/PerlDancer/Dancer2/issues/393" target="_blank">https://github.com/PerlDancer/Dancer2/issues/393</a><br>

</div><div>

<br></div><div>I'm sorry to have gotten jammed up with such a simple task. I ran into a small issue which might relate to other things going on.</div><div><br></div><div>(1) I cannot use setting(port => 1234) or setting(environment => "stage") inside GetOpt like Dancer1. It fails. </div>






<div>Here is the line that fails:</div><div><a href="https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2/GetOpt.pm#L15" target="_blank">https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2/GetOpt.pm#L15</a><br>






</div><div><br></div><div>@mst did point out this is incorrect, I should point to the config setting on the app instance. A larger problem here is that this doesn't work either.</div><div><br></div><div>(2) $app->setting(..) or $runner->setting(..) don't work. </div>






<div>See : <a href="https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2.pm#L151" target="_blank">https://github.com/gideondsouza/Dancer2/blob/pr/command_line_support/lib/Dancer2.pm#L151</a></div>




<div><br></div>

<div>What also perplexed me is that if I put a breakpoint at a line inside Dancer2::import it wouldn't stop and just go and run the server.</div><div><br></div><div>So what should I do here?  Setting $ENV{} works. Should I do this? Am I doing something wrong? Is there anything else I should fix first?</div>






<div><br></div><div>Regards,</div><div>Gideon</div></div>
<br></div></div>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>