Skip to main content

Module cli

Module cli 

Source
Expand description

clap definitions for the CLI surface.

All flags carry /// doc comments in English. clap parse failures exit with code 2, matching the documented fatal-code contract; semantic conflicts (opt-in vs --exclude-ext) are validated in FilterConfig::build.

The flag surface is normalized per subcommand: scan / verify accept only detection + filtering + reporting options; conversion-only options (--target, --dry-run, --backup-dir, --url, --output) exist solely on convert, so misuse fails fast with exit 2 instead of being ignored.

Structs§

Cli
utf8-forge — a focused, idempotent, bidirectional charset transcoder.
ConvertArgs
convert additions: conversion options + remote fetch. Extends the shared TreeArgs (whose --root is ignored when --url is given).
DiffArgs
diff args: two report files to compare. No tree options.
FixArgs
fix args: shared tree options plus conversion options. No --url / --output — fix is a tree operation only.
TreeArgs
Detection / filtering / reporting options shared by scan, verify, and convert (tree mode). Conversion-only options live on ConvertArgs.

Enums§

Commands
Subcommands. Named Commands to avoid colliding with the imported clap::Subcommand derive trait.