Skip to main content

Module cli

Module cli 

Source
Expand description

Command-line interface for the xml-disassembler binary.

Kept in the library crate so it can be exercised by unit tests and the binary stays a thin shim.

Structs§

DisassembleOpts
Options parsed from disassemble CLI args.

Functions§

parse_decompose_spec
Parse –split-tags spec for grouped-by-tag. Comma-separated rules; each rule: tag:mode:field (path_segment defaults to tag) or tag:path:mode:field. mode = “split” (one file per item) or “group” (group by field).
parse_disassemble_args
Parse disassemble args: <path> [options].
parse_multi_level_spec
Parse –multi-level spec: file_pattern:root_to_strip:unique_id_elements.
parse_reassemble_args
Parse reassemble args: <path> [extension] [--postpurge].
print_usage
Print CLI usage to stderr.
run
Run the CLI with the given args. args[0] is expected to be the program name.