Skip to content

Support @Command(scope=INHERIT) (was: mixinStandardHelpOptions versus CommandLine.ScopeType.INHERIT) #1164

@rnc

Description

@rnc

According to https://picocli.info/#_help_options I can add mixinStandardHelpOptions = true which replaces the individual

@Option(names = {"-h", "--help"}, usageHelp = true, description = "display this help message")
boolean usageHelpRequested;

However if for the latter I have configured CommandLine.ScopeType.INHERIT then the help command is added to every subcommand as I understand. But it seems that adding it via the mixinStandardHelpOptions = true it is not inherited. Would it be possible to consider enabling inheritance for

        mixinStandardHelpOptions = true

and possibly

        versionProvider = VersionProvider.class,

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions