<div dir="ltr">Another option is to conditionally use different getopt args like:<div><br></div><div>if OSX: use getopt w/o long opts</div><div>else: use powerful getopt w/ long opts</div><div><br></div><div>It adds some inconsistency to the script but makes it useful for OS X users.</div>
<div><br></div><div>Anyway, it's still possible to just use it w/o args to ensure latest config.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 4:01 AM, Chmouel Boudjnah <span dir="ltr"><<a href="mailto:chmouel@enovance.com" target="_blank">chmouel@enovance.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"><div class=""><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 20, 2014 at 12:17 AM, Sergey Lukjanov <span dir="ltr"><<a href="mailto:slukjanov@mirantis.com" target="_blank">slukjanov@mirantis.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>tools/config/generate_sample.sh isn't working on OS X due to the getopt usage. Any recipes / proposals to fix it? I have a workaround at least.</div>


</blockquote></div><br><br></div></div><div class="gmail_extra">thanks for the workaround, I had a look on this while reporting  bug <a href="https://bugs.launchpad.net/heat/+bug/1261370" target="_blank">https://bugs.launchpad.net/heat/+bug/1261370</a>, the easy way would be to use bash builtin getopt but that would mean we would have to drop long options.<br>


<br>Is dropping long options an (pun not sure if it's intended) option?<span class="HOEnZb"><font color="#888888"><br><br>Chmouel.<br></font></span></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Sincerely yours,</div><div>Sergey Lukjanov</div><div>Savanna Technical Lead</div><div>Mirantis Inc.</div></div>
</div>