merge_config
merge.merge_config(args, config, *, verbose=False)Merge [tool.lintquarto] config into parsed CLI args.
CLI flags always win for list arguments; config values are used only when the corresponding CLI argument was not supplied. Boolean flags use OR semantics: True from either source wins.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| args | argparse.Namespace | Parsed command-line arguments. | required |
| config | LintquartoConfig | Settings loaded from pyproject.toml. |
required |
| verbose | bool | If True, print a message for each value that is set or overridden. Defaults to False. |
False |
Returns
| Name | Type | Description |
|---|---|---|
| argparse.Namespace | Updated namespace with config values back-filled where CLI was silent. |