MCPcopy Create free account
hub / github.com/FastLED/FastLED / parse_args

Function parse_args

ci/wasm_compile.py:17–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def parse_args() -> tuple:
18 import argparse
19
20 parser = argparse.ArgumentParser(description="Compile wasm")
21 parser.add_argument(
22 "sketch_dir",
23 nargs="?",
24 default="examples/wasm",
25 help="The directory of the sketch to compile",
26 )
27 parser.add_argument(
28 "--run",
29 action="store_true",
30 help="Run Playwright tests after compilation (default is compile-only)",
31 )
32 known_args, unknown_args = parser.parse_known_args()
33 if "--build" in unknown_args:
34 print("WARNING: --build is no longer supported. It will be ignored.")
35 unknown_args.remove("--build")
36 if "-b" in unknown_args:
37 print("WARNING: -b is no longer supported. It will be ignored.")
38 unknown_args.remove("-b")
39 return known_args, unknown_args
40
41
42def main() -> int:

Callers 1

mainFunction · 0.70

Calls 2

printFunction · 0.50
removeMethod · 0.45

Tested by

no test coverage detected