[PATCH] D57030: [CommandLine] Don't print empty sentinel values from EnumValN lists in help text
    Thomas Preud'homme via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jan 21 14:52:23 PST 2019
    
    
  
thopre added a comment.
Do such sentinel trigger if not passing the equal sign (ie. when using only "-mhvx" in the example you quote) or only with equal sign without a value (one has to use "-mhvx=" to select the option)?
If the former I think this change is fine. I would also suggest adding an early continue when only the description is empty on line 1683 to avoid the empty '-'.
But if the latter (one has to do "-mhvx=" to select the option) I'm not sure hiding the option is right since it is a value (albeit empty) people can use.
Repository:
  rL LLVM
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57030/new/
https://reviews.llvm.org/D57030
    
    
More information about the llvm-commits
mailing list