<div dir="ltr"><div>In the help I see this usage...<br></div><div><div>    squeak [<option>...] -- [<argument>...]</div><div><br></div><div>but I don't grok it enough to test if that is affected by...</div><div><div>   +  if (argv[0][0] == '-' && argv[0][1] == '-')</div><div>   +<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>argv[0]++;<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>/* skip one dash in double dash options */</div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>Otherwise there seems no obvious harm in being permissive in handling both -- or -     </div><div><br></div></div><div class="gmail_extra">Also, maybe just bike-shedding, but</div><div class="gmail_extra">     ./pharo --help   </div><div class="gmail_extra"><br>would then display...</div><div class="gmail_extra">   -version              print version information, then exit</div><div class="gmail_extra"><br></div><div class="gmail_extra">instead of current... </div><div class="gmail_extra">   --version              print version information, then exit</div><div class="gmail_extra">  </div><div class="gmail_extra">Esteban would need to advise whether this is of concern. </div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">btw, anyone wanting try the PR can do...<br>$ git remote add OpenSmalltalk <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm.git">https://github.com/OpenSmalltalk/opensmalltalk-vm.git</a> # if you don't already have it</div><div class="gmail_extra"><div class="gmail_extra">$ git fetch OpenSmalltalk pull/136/head:dd</div><div class="gmail_extra">$ git checkout dd</div><div><br></div></div><div class="gmail_extra"> </div><div class="gmail_extra">cheers -ben</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 9, 2017 at 8:39 AM, Eliot Miranda <span dir="ltr"><<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> <br><div dir="ltr">Hi All,<div><br></div><div>    I like Subbu's fixing of the error codes.  I'm not sure the accept both -- or - need addressing.  Thoughts?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 7, 2017 at 2:32 AM, K K Subbu <span dir="ltr"><<a href="mailto:kksubbu.ml@gmail.com" target="_blank">kksubbu.ml@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><br>
On Friday 05 May 2017 03:01 AM, Andrei Chis wrote:<br>
</span><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
On mac the error code is 0. Also when executing './pharo' or './pharo<br>
Pharo.image --help' or './pharo --version' the error code is 0 on both<br>
mac and linux.<br>
So it seems there is some issues with --help. Actually, it gives a usage<br>
warning, but still I'd expect to not return an error code.<br>
</blockquote>
<br></span>
OK, I have uploaded a patch:<br>
<br>
<a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/136" rel="noreferrer" target="_blank">https://github.com/OpenSmallta<wbr>lk/opensmalltalk-vm/pull/136</a><br>
<br>
that accepts both single and double-dashes for options on unix builds. help or version options return 0 on exit.<br>
<br>
Regards .. Subbu<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-6823417339947375313gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div>
<br></blockquote></div><br></div></div></div>