Convert debug CLI application setup to use inherited Picocli subcommands.

Description

Cross-cutting concern-related options like debug (.e.g. --debug) and i18n currently have to be re-declared and dealt with for each subcommand. Picocli Issue #649 added a scope = ScopeType.INHERIT designation to allow options to be defined once and to take effect for subcommand.

Improve the BaseCliApplication to add these inherited options such as debug automatically.

Note that this functionality should have been released in Picocli 4.3, but because of Issue #1042 it looks like it will be fully ready in v4.3.1.

Environment

None

Activity

Show:
Garret Wilson
May 15, 2020, 3:06 PM

This ticket will also add a facility for an application subclass to indicate the default log level.

Assignee

Garret Wilson

Reporter

Garret Wilson

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure