Single dash for these options is not recognised.
Changes found by running this on the --help output
and the user guide:
grep -e ' -[a-zA-Z]\{2,\}'
The user guide was updated in https://reviews.llvm.org/D92305
so no change there.
Paths
| Differential D92310
[llvm-objdump] Use "--" for long options in --help text ClosedPublic Authored by DavidSpickett on Nov 30 2020, 3:58 AM.
Details Summary Single dash for these options is not recognised. Changes found by running this on the --help output The user guide was updated in https://reviews.llvm.org/D92305
Diff Detail
Event TimelineComment Actions Mostly seems sensible to me. However, you might want to get the opinion of a Mach-O user as to whether the single or double-dash option makes more sense for the Mach-O specific options. I've added a couple of others who I know use Mach-O as reviewers. This revision is now accepted and ready to land.Nov 30 2020, 4:19 AM Comment Actions For reference it's listed as --macho in https://llvm.org/docs/CommandGuide/llvm-objdump.html#cmdoption-llvm-objdump-macho. However that page is missing some of the "requires -macho" statements so could be a mistake. Currently it only accepts --: $ ./bin/llvm-objdump /tmp/arm64.o -d -macho llvm-objdump: Unknown command line argument '-macho'. Try: './bin/llvm-objdump --help' llvm-objdump: Did you mean '-h'? $ ./bin/llvm-objdump /tmp/arm64.o -d --macho llvm-objdump: error: /tmp/arm64.o': object is not a Mach-O file type. But yes, perhaps it is intended to work. Comment Actions It's quite possible there are mistakes in the llvm-objdump docs - I have attempted to get them somewhat clean, but don't really know much about mach-o nor do I use it at all so it's quite likely I've either missed something or accidentally broken some related documentation in my attempts to clean things up! Alterantively, it's quite possible the docs were in a bad state before I even touched them! Comment Actions Ping on -macho vs --macho question. Anyone else want to chime in? (thanks for the review so far) Closed by commit rGaabaca336358: [llvm-objdump] Use "--" for long options in --help text (authored by DavidSpickett). · Explain WhyDec 14 2020, 5:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 308316 llvm/tools/llvm-objdump/MachODump.cpp
llvm/tools/llvm-objdump/llvm-objdump.cpp
|
clang-format not found in user's PATH; not linting file.