static HelpActionWrapper fromCommand(
            Command command,
            String parentCommandName,
            Function<ColorFormatter, String> documentationProvider,
            CommandAction delegate
    ) {
        return new HelpActionWrapper(
                command.getName(),
                parentCommandName,
                command.getSummary(),
                documentationProvider,
                delegate);
    }
A {@code CommandAction} that intercepts another action and handles printing -h / --help.
smithy-cli/src/main/java/software/amazon/smithy/cli/commands/HelpActionWrapper.java