jingham added a comment.

I agree with Pavel,  reporting an error and exiting seems like a good behavior. 
 When I mistype a command line option, I generally immediately quit lldb, 
up-arrow and fix and resubmit, so this would save keystrokes.

We should make sure if we do exit that we don't output any other text that 
would obscure the error message.  It should be easy to spot the error both so 
you can easily fix it and to prevent you from typing lldb commands into your 
shell.  If libOption had a "nearest option name to the one you typed" facility 
that would be useful in this case as well.

Does anybody remember what gdb does when you mistype a command-line option?  
We're not at all required to model their behavior, but it would be interesting 
to consider.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80165/new/

https://reviews.llvm.org/D80165



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to