optional mode-flag arg
commitcb9819af5def97e3eda7f9ab088f713826f3d94d
authorLucian Wischik <ljw@fb.com>
Wed, 13 Nov 2019 05:52:01 +0000 (12 21:52 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 13 Nov 2019 05:54:58 +0000 (12 21:54 -0800)
tree24efe8f0ea6efc3efd3409531ebe643fa287a71e
parentff058956aeb4ef63082c0a819d3e34aaa10f1399
optional mode-flag arg

Summary:
Our verify.py script invokes its specified program with the filename of the test case as its first argument, and all other flags as the rest.

This is great for tools like `hh_single_type_check`, but it doesn't work for commands like `hh_client check` or `hh_client start` which take a "mode" as their first flag.

This diff changes verify.py to take an optional `--mode-flag` paramater, to specify the mode flag that will be passed first to its specified program.

Reviewed By: jewelpit

Differential Revision: D18416881

fbshipit-source-id: b84bd86054116d9a211f1e2538b7abbc240f5cef
hphp/hack/test/verify.py