Skip to content

Phase 2a: Port argument parsing and CLI entry point to Rust #18

Closed

Description

@zackees

Part of #14
Depends on Phase 1c (#17)

Goal

Replace parse_args.py and args.py with Rust clap argument parsing. The Rust binary becomes the entry point and delegates to Python for operations not yet ported.

Tasks

  • Define all CLI flags in crates/fastled-cli/src/main.rs using clap::Parser
  • Mirror current flags: --just-compile, --debug, --quick, --release, --purge, --app, --no-https, --fastled-path, --init, --version, --serve-dir
  • For unported operations, shell out to python -m fastled with appropriate args
  • Update pyproject.toml [project.scripts] entry point to use the Rust binary
  • Verify fastled --help output matches current behavior
  • Verify fastled --version prints correct version

Acceptance criteria

  • fastled --help works from Rust binary
  • All existing CLI commands still work (delegating to Python where needed)
  • Startup time measurably faster than Python entry point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions