This is an archive of the discontinued LLVM Phabricator instance.

[XRay][tools] Handle "no subcommand" case for llvm-xray
ClosedPublic

Authored by dberris on Mar 27 2017, 4:19 PM.

Details

Summary

Currently the llvm-xray commandline tool fails to handle the case for
when no subcommand is provided in a graceful manner. This fixes that to
print the help message explaining the subcommands and the available
options.

Diff Detail

Repository
rL LLVM

Event Timeline

dberris created this revision.Mar 27 2017, 4:19 PM
dberris planned changes to this revision.Mar 28 2017, 7:45 PM

@pelikan correctly points out that this is missing a test. Will add that in a bit.

dberris updated this revision to Diff 93339.Mar 28 2017, 9:55 PM
  • fixup: add a test
pelikan accepted this revision.Mar 28 2017, 9:57 PM

Thumbs up. Like. +1.

This revision is now accepted and ready to land.Mar 28 2017, 9:57 PM
This revision was automatically updated to reflect the committed changes.