This is an archive of the discontinued LLVM Phabricator instance.

[UptestTestChecks][NFC] Share some common command line options code
ClosedPublic

Authored by arichardson on Nov 19 2019, 3:09 AM.

Details

Summary

Add a function common.parse_commandline_args() that adds options common
to all tools (--verbose and --update-only) and returns the parsed
commandline arguments. I plan to use the shared parsing of --verbose in a
follow-up commit to remove most of the if args.verbose: checks in the
scripts.

Diff Detail

Event Timeline

arichardson created this revision.Nov 19 2019, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 19 2019, 3:09 AM
MaskRay accepted this revision.Nov 19 2019, 4:01 PM
This revision is now accepted and ready to land.Nov 19 2019, 4:01 PM
This revision was automatically updated to reflect the committed changes.