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

Function main

ci/wasm_build.py:1847–1863  ·  view source on GitHub ↗

CLI entry point — parses args and delegates to build().

()

Source from the content-addressed store, hash-verified

1845
1846
1847def main() -> int:
1848 """CLI entry point — parses args and delegates to build()."""
1849 parser = argparse.ArgumentParser(description="Build WASM example")
1850 parser.add_argument("--example", required=True, help="Example name (e.g., Blink)")
1851 parser.add_argument("-o", "--output", required=True, help="Output JS file path")
1852 parser.add_argument(
1853 "--mode",
1854 default="quick",
1855 choices=["quick", "debug", "release"],
1856 help="Build mode",
1857 )
1858 parser.add_argument("-v", "--verbose", action="store_true", help="Verbose output")
1859 parser.add_argument(
1860 "--force", action="store_true", help="Force meson reconfiguration"
1861 )
1862 args = parser.parse_args()
1863 return build(args.example, args.output, args.mode, args.verbose, args.force)
1864
1865
1866if __name__ == "__main__":

Callers 1

wasm_build.pyFile · 0.70

Calls 2

buildFunction · 0.85
parse_argsMethod · 0.80

Tested by

no test coverage detected