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§
- Disassemble
Opts - 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) ortag: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.