You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may be interested in the <<Convenience Methods for Subcommands,convenience methods for subcommands>> to reduce error handling and other boilerplate code in your application.
787
+
As of Picocli 4.0, you may use the <<Executing Commands,`execute` method>> to reduce error handling and other boilerplate code in your application.
788
788
789
789
790
790
=== `@ParentCommand` Annotation
791
791
In command line applications with subcommands, options of the top level command are often intended as "global" options that apply to all the subcommands.
792
792
The `@ParentCommand` annotation makes it easy for subcommands to access their parent command options: subcommand fields annotated with `@ParentCommand` are initialized with a reference to the parent command.
793
-
The user manual has an example showing https://picocli.info/#__code_parentcommand_code_annotation[how to use the `@ParentCommand` annotation].
793
+
The user manual has an example showing https://picocli.info/#parentcommand-annotation[how to use the `@ParentCommand` annotation].
0 commit comments