refactor(client-cli): split parse_args into focused option handlers
Break the ~700-line parse_args god function into cohesive static helpers grouped by concern: output controls, pre-negation, range/time options, the OPTION_TABLE dispatcher, flag/meta handlers, IO/network options, filter and logging options, checksum/socket options, remote/basis/identity options, positional handling, and a final lowering step. A file-local CliParseCtx carries the config, cursor, positional buffers and the mutable parse flags, so each handler stays focused. The dispatcher calls the handlers in the original recognition order and preserves the exact return contract (0/1/negative), error messages, log levels and control flow. Behavior preserved; no functional changes.
This commit is contained in:
+736
-374
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user