argparse_main
Main CLI parser setup for the Merlin command-line interface.
This module defines the primary argument parser for the merlin CLI tool,
including custom error handling and integration of all available subcommands.
HelpParser
Bases: ArgumentParser
This class overrides the error message of the argument parser to print the help message when an error happens.
Methods:
| Name | Description |
|---|---|
error |
Override the error message of the |
Source code in merlin/cli/argparse_main.py
error(message)
Override the error message of the ArgumentParser class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
The error message to log. |
required |
build_main_parser()
Set up the command-line argument parser for the Merlin package.
Returns:
| Type | Description |
|---|---|
ArgumentParser
|
An |