<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 11, 2015 at 2:16 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.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="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Mar 11, 2015 at 2:10 PM, Richard Barton <span dir="ltr"><<a href="mailto:richard.barton@arm.com" target="_blank">richard.barton@arm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Chandler<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Gabor’s patch seems uncontroversial to me and the new behaviour matches many other applications using unix getopt.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Could you say why you think it is a mistake?</span></p></blockquote><div><br></div></span><div>Because I think it is better to have a consistent syntax.</div><div><br></div><div>While it matches some uses of getopt, it doesn't match the prevalent commandline flag syntax of newer command line tools where short options are single '-' and single character (and can be combined), but long options have '--', cannot be combined, and require an '='s.</div><div><br></div><div>I don't think this makes sense as a short option as well, and I would prefer we have a single unambiguous spelling of the long option.</div><div><br></div><div>We have started trying to consistently use this long-option syntax for flags which are very high-level flags completely handled by the clang driver such as '--target='. I would like to see us get more consistent in this single spelling rather than less consistent. The deviations from it should be to preserve necessary compatibility.</div></div></div></div></blockquote><div><br></div><div>The previous state was that we allowed -target blah and --target=blah, but not -target=blah nor --target blah. This new state seems better than that in some ways, but neither is particularly satisfactory.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Do you object to relaxing the mandatory ‘=’ or allowing both single and double – versions or both?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u></span></p></blockquote><div><br></div></span><div>Both.</div></div></div></div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div></div>