This is an archive of the discontinued LLVM Phabricator instance.

Have yaml2obj describe all options in --help
ClosedPublic

Authored by probinson on Nov 24 2021, 7:20 AM.

Details

Summary

Looks like a couple of options were missing cl::cat(Cat) and so weren't in the help output.

Diff Detail

Event Timeline

probinson requested review of this revision.Nov 24 2021, 7:20 AM
probinson created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 24 2021, 7:20 AM
jhenderson accepted this revision.Nov 24 2021, 7:22 AM

LGTM. I don't think it is worth testing this, but for complete sanity, could you post the before and after help text in this thread, please?

This revision is now accepted and ready to land.Nov 24 2021, 7:22 AM

Before:

OVERVIEW: Create an object file from a YAML description
USAGE: yaml2obj [options] <input file>

OPTIONS:

Generic Options:

  --help          - Display available options (--help-hidden for more)
  --help-list     - Display list of available options (--help-list-hidden for more)
  --version       - Display the version of this program

yaml2obj Options:

  --docnum=<uint> - Read specified document from input (default = 1)
  -o=<filename>   - Output filename

After:

OVERVIEW: Create an object file from a YAML description
USAGE: yaml2obj [options] <input file>

OPTIONS:

Generic Options:

  --help             - Display available options (--help-hidden for more)
  --help-list        - Display list of available options (--help-list-hidden for more)
  --version          - Display the version of this program

yaml2obj Options:

  -D=<string>        - Defined the specified macros to their specified definition. The syntax is <macro>=<definition>
  --docnum=<uint>    - Read specified document from input (default = 1)
  --max-size=<ulong> - Sets the maximum allowed output size (0 means no limit) [ELF only]
  -o=<filename>      - Output filename
This revision was landed with ongoing or failed builds.Nov 24 2021, 7:45 AM
This revision was automatically updated to reflect the committed changes.