homectl: convert parse_argv to OPTION macros
Rewrite help() with help-util.h primitives + option_parser_get_help_table_group for each User Record Properties section. The verbs[] table stays unchanged for now; run() switches from dispatch_verb() (which depended on the global optind) to _dispatch_verb_with_args() fed by option_parser_get_args(). Explanations are improved for --birth-date[=DATE] (correct placement of '['), --skel=, --shell= (short options listed). Some minor rewordings for other options. The explanation for -E and -EE is split. (OPTION_HELP_ENTRY_VERBATIM is used for -EE.) Co-developed-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+410
-719
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user