[PATCH] D78476: [dsymutil] Fix short options displayed in the help message.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 01:02:12 PDT 2020
Higuoxing added a comment.
In D78476#2007080 <https://reviews.llvm.org/D78476#2007080>, @jhenderson wrote:
> Assuming we want only "--option1" to be matched, why not simply change the text to `--option1`? If we want to allow either version, then `-option1` is fine, or you could be more specific with `{{-?}}-option1`. Finally, you could also ensure there'se a space before the option by doing `{{ }}--option1` or even `{{ -?}}-option1`.
Sorry for the misleading, in this patch, I changed some long options (`--o`, `--y`) to (`-o` and `-y`), however, for example, pattern `"-o"` matches both `--o` and `-o`. I am wondering, is there any way to match exactly `-o`? I've checked other LLVM tools, and it seems that there is no such pattern?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78476/new/
https://reviews.llvm.org/D78476
More information about the llvm-commits
mailing list