Page MenuHomePhabricator

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

Authored by arichardson on Tue, Nov 19, 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.Tue, Nov 19, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptTue, Nov 19, 3:09 AM
MaskRay accepted this revision.Tue, Nov 19, 4:01 PM
This revision is now accepted and ready to land.Tue, Nov 19, 4:01 PM
Closed by commit rG6187394dd05e: [UptestTestChecks][NFC] Share some common command line options code (authored by Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>). · Explain WhyWed, Nov 20, 5:24 AM
This revision was automatically updated to reflect the committed changes.