fix(HEL-560): verify tools provide a non-mutating --help path
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -11,8 +11,6 @@ import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
import verify_datahub_console as backend
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
@@ -42,6 +40,11 @@ def check(label: str, ok: bool, detail: str = "") -> None:
|
||||
|
||||
|
||||
def main() -> int:
|
||||
if any(argument in {"-h", "--help"} for argument in sys.argv[1:]):
|
||||
print(__doc__.strip())
|
||||
return 0
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
shots = Path(sys.argv[sys.argv.index("--shots") + 1]) if "--shots" in sys.argv else None
|
||||
if shots:
|
||||
shots.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user