CLI entry point — parses args and delegates to build().
()
| 1845 | |
| 1846 | |
| 1847 | def 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 | |
| 1866 | if __name__ == "__main__": |
no test coverage detected