CLI & Errors
CLI
Command-line interface for soap-calc.
build_parser()
Build the argument parser for the soap-calc CLI.
Creates the main parser and all subcommand parsers (calculate, export, validate, list-oils, scale) with their respective arguments and handlers.
Returns:
| Type | Description |
|---|---|
ArgumentParser
|
Configured ArgumentParser with all subcommands registered. |
main(argv=None)
Main entry point for the soap-calc CLI.
Parses command-line arguments and dispatches to the appropriate subcommand handler function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
list[str] | None
|
Command-line arguments to parse. If None, uses sys.argv. |
None
|