-
post_process_args — Reshape the flat argparse namespace into the nested config shape.
-
get_args — Parse CLI arguments and reshape into the nested config namespace.
-
main — Get CLI arguments and perform the operation on the archive.
comicbox.cli¶
source package comicbox.cli
Cli for comicbox.
Functions
source post_process_args(cns: Namespace) → None
Reshape the flat argparse namespace into the nested config shape.
The new config tree (general / read / write / print / convert / compute / online) lives under cns.<group>.* so confuse’s set_args overlays each CLI value at the matching YAML path.
Online runtime fields (--online, --id, --match, …) stay flat at the top of cns — they’re consumed by runtime_online_inputs / build_online_settings directly, not via confuse layering.
source get_args(params: Sequence[str] | None = None) → Namespace
Parse CLI arguments and reshape into the nested config namespace.
params is an argv-style sequence: params[0] is treated as the program name and dropped before parsing, mirroring sys.argv. Pass None to parse sys.argv itself.
source main(params: Sequence[str] | None = None) → None
Get CLI arguments and perform the operation on the archive.