color_tools.cli

Command-line interface for color_tools.

Provides main commands: - color: Search and query CSS colors - filament: Search and query 3D printing filaments - convert: Convert between color spaces and check gamut - name: Generate descriptive color names - validate: Validate if hex codes match color names - cvd: Color vision deficiency simulation/correction - image: Image color analysis and manipulation

This is the “top” of the dependency tree - it imports from everywhere but nothing imports from it (except __main__.py).

color_tools.cli.build_parser()[source]

Build and return the argument parser for color-tools.

Separated from main() so the wizard and tests can introspect available choices (–space, –metric, –from, –to, etc.) without running the CLI.

Return type:

ArgumentParser

color_tools.cli.main()[source]

Main entry point for the CLI.

Note: No if __name__ == “__main__”: here! That’s __main__.py’s job. This function is just the CLI logic - pure and testable.