This is an archive of the discontinued LLVM Phabricator instance.

[opt-viewer] Include default values in help output
ClosedPublic

Authored by modocache on Jun 10 2017, 8:06 AM.

Details

Summary

Python's argparse module includes a %(default)s format specifier that
can be used to print the default value of an option in its help text.
Use this for opt-viewer utilities' --jobs arguments.

Event Timeline

modocache created this revision.Jun 10 2017, 8:06 AM
anemet accepted this revision.Jun 10 2017, 10:38 AM

LGTM, thanks!

This revision is now accepted and ready to land.Jun 10 2017, 10:38 AM
modocache closed this revision.Jun 10 2017, 2:33 PM