freeports_analysis.cmd
Contains all functions related to command line use of the freeport script.
Functions
|
Command line entry point for the freeports script. |
- freeports_analysis.cmd.cmd() None
Command line entry point for the freeports script.
This function is called when launching freeports from the terminal. It handles configuration parsing from multiple sources (command line, environment variables, configuration files) and calls the main function.
- Raises:
argparse.ArgumentError – If command line arguments are invalid or conflicting
FileNotFoundError – If specified configuration files are not found
ValueError – If configuration values are invalid
Notes
The configuration is loaded in the following order of precedence: 1. Command line arguments (highest priority) 2. Environment variables 3. Configuration files 4. Default values (lowest priority)