root method
Returns the root command's context.
Implementation
CommandContext<OptionDefinition, T> root() {
final prevContext = prev;
return prevContext == null ? this : prevContext.root();
}
Returns the root command's context.
CommandContext<OptionDefinition, T> root() {
final prevContext = prev;
return prevContext == null ? this : prevContext.root();
}