From 453bcd6038730cf1da7d9b988574513cadb99cf1 Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Wed, 17 Aug 2022 15:14:31 +0200 Subject: [PATCH] Use "--" for long options in --help text See: https://reviews.llvm.org/D92310 --- llvm/tools/llvm-objdump/MachODump.cpp | 24 ++++++++++++------------ llvm/tools/llvm-objdump/llvm-objdump.cpp | 16 ++++++++-------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/llvm/tools/llvm-objdump/MachODump.cpp b/llvm/tools/llvm-objdump/MachODump.cpp index 6d46496ecd4e..a50de47b97f5 100644 --- a/llvm/tools/llvm-objdump/MachODump.cpp +++ b/llvm/tools/llvm-objdump/MachODump.cpp @@ -107,70 +107,70 @@ static cl::opt NoLeadingHeaders("no-leading-headers", cl::opt objdump::UniversalHeaders( "universal-headers", - cl::desc("Print Mach-O universal headers (requires -macho)"), + cl::desc("Print Mach-O universal headers (requires --macho)"), cl::cat(MachOCat)); static cl::opt ArchiveMemberOffsets( "archive-member-offsets", cl::desc("Print the offset to each archive member for Mach-O archives " - "(requires -macho and -archive-headers)"), + "(requires --macho and --archive-headers)"), cl::cat(MachOCat)); cl::opt objdump::IndirectSymbols( "indirect-symbols", cl::desc( - "Print indirect symbol table for Mach-O objects (requires -macho)"), + "Print indirect symbol table for Mach-O objects (requires --macho)"), cl::cat(MachOCat)); cl::opt objdump::DataInCode( "data-in-code", cl::desc( - "Print the data in code table for Mach-O objects (requires -macho)"), + "Print the data in code table for Mach-O objects (requires --macho)"), cl::cat(MachOCat)); cl::opt objdump::LinkOptHints("link-opt-hints", cl::desc("Print the linker optimization hints for " - "Mach-O objects (requires -macho)"), + "Mach-O objects (requires --macho)"), cl::cat(MachOCat)); cl::opt objdump::InfoPlist("info-plist", cl::desc("Print the info plist section as strings for " - "Mach-O objects (requires -macho)"), + "Mach-O objects (requires --macho)"), cl::cat(MachOCat)); cl::opt objdump::DylibsUsed("dylibs-used", cl::desc("Print the shared libraries used for linked " - "Mach-O files (requires -macho)"), + "Mach-O files (requires --macho)"), cl::cat(MachOCat)); cl::opt objdump::DylibId("dylib-id", cl::desc("Print the shared library's id for the " - "dylib Mach-O file (requires -macho)"), + "dylib Mach-O file (requires --macho)"), cl::cat(MachOCat)); static cl::opt NonVerbose("non-verbose", cl::desc("Print the info for Mach-O objects in non-verbose or " - "numeric form (requires -macho)"), + "numeric form (requires --macho)"), cl::cat(MachOCat)); cl::opt objdump::ObjcMetaData("objc-meta-data", cl::desc("Print the Objective-C runtime meta data " - "for Mach-O files (requires -macho)"), + "for Mach-O files (requires --macho)"), cl::cat(MachOCat)); static cl::opt DisSymName( "dis-symname", - cl::desc("disassemble just this symbol's instructions (requires -macho)"), + cl::desc("disassemble just this symbol's instructions (requires --macho)"), cl::cat(MachOCat)); static cl::opt NoSymbolicOperands( "no-symbolic-operands", - cl::desc("do not symbolic operands when disassembling (requires -macho)"), + cl::desc("do not symbolic operands when disassembling (requires --macho)"), cl::cat(MachOCat)); static cl::list diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 320bbb5d358b..c5378872fef5 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -101,7 +101,7 @@ static cl::alias AllHeadersShort("x", cl::desc("Alias for --all-headers"), static cl::opt ArchName("arch-name", cl::desc("Target arch to disassemble for, " - "see -version for available targets"), + "see --version for available targets"), cl::cat(ObjdumpCat)); cl::opt @@ -274,7 +274,7 @@ static cl::alias PrivateHeadersShort("p", cl::list objdump::FilterSections("section", cl::desc("Operate on the specified sections only. " - "With -macho dump segment,section"), + "With --macho dump segment,section"), cl::cat(ObjdumpCat)); static cl::alias FilterSectionsj("j", cl::desc("Alias for --section"), cl::NotHidden, cl::Grouping, cl::Prefix, @@ -303,7 +303,7 @@ static cl::opt PrintSource( cl::desc( "Display source inlined with disassembly. Implies disassemble object"), cl::cat(ObjdumpCat)); -static cl::alias PrintSourceShort("S", cl::desc("Alias for -source"), +static cl::alias PrintSourceShort("S", cl::desc("Alias for --source"), cl::NotHidden, cl::Grouping, cl::aliasopt(PrintSource)); @@ -330,11 +330,11 @@ static cl::alias DynamicSymbolTableShort("T", cl::NotHidden, cl::Grouping, cl::aliasopt(DynamicSymbolTable)); -cl::opt objdump::TripleName( - "triple", - cl::desc( - "Target triple to disassemble for, see -version for available targets"), - cl::cat(ObjdumpCat)); +cl::opt + objdump::TripleName("triple", + cl::desc("Target triple to disassemble for, see " + "--version for available targets"), + cl::cat(ObjdumpCat)); cl::opt objdump::UnwindInfo("unwind-info", cl::desc("Display unwind information"), -- 2.37.2