<div dir="ltr">long and short options are supported, but the one I'm not sure about is the case where you use a short option with no space. Your example "-ax86_64" might not work. It might, just that it should be tested. I'm 99% confident the rest of them all work.<div><br></div><div>Also not sure about this example: "<span style="line-height:1.5">% lldb /bin/ls --arch=x86_64 -- -lAF"</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">If I understand correctly, this runs LLDB with the --arch=x86_64 argument, and specifies the program to debug as "/bin/ls -IAF"?</span></div><div><span style="line-height:1.5"><br></span></div><div>Seems like a confusing syntax to me, is there any other way to specify this currently? like:</div><div><br></div><div>% lldb "/bin/ls -IAF" --arch=x86_64</div><div>% lldb /bin/ls --arch-x86_64 --args=-IAF</div><div><br></div><div>Or something along those lines?</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 29, 2016 at 10:46 AM Greg Clayton <<a href="mailto:clayborg@gmail.com">clayborg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">clayborg added a comment.<br>
<br>
As long as both long and short options are still supported? Can you still type any of:<br>
<br>
- --arch=x86_64<br>
- --arch x86_64<br>
- -arch=x86_64<br>
- -arch x86_64<br>
- -ax86_64<br>
- -a x86_64<br>
<br>
Are we able to track which options can be used with other options with the llvm solution? I didn't look too close. There were bits in the old option definitions which defined with options could be specified with which other options. The other thing that might throw people for a loop is if llvm doesn't support this style:<br>
<br>
% lldb /bin/ls --arch=x86_64 -- -lAF<br>
<br>
getopt_long allowed you to have arguments mixed in between the options so the arguments would have bee "/bin/ls" and "-lAF". Options would have been "--arch=x86_64".<br>
<br>
<br>
<a href="http://reviews.llvm.org/D17724" rel="noreferrer" target="_blank">http://reviews.llvm.org/D17724</a><br>
<br>
<br>
<br>
</blockquote></div>