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
I have a main command with several nested sub commands.
I use :
CommandLinecommand = newCommandLine(mainCommand) .setExecutionStrategy(newRunAll());
intexitCode = command.execute(args);
ObjectexecutionResult = command.getExecutionResult(); // contain only result of the main command.
Is it the expected behavior ?
I expected to get a List<?> containing result of each executed command.
This is the expected behaviour.
An alternative to your solution is to use CommandLine.getParseResult to get a ParseResult object.
This object allows you to query whether a subcommand was detected, and get the ParseResult for the subcommand.
Same for sub-subcommands.
I have a main command with several nested sub commands.
I use :
Is it the expected behavior ?
I expected to get a List<?> containing result of each executed command.
I'm able to have this behavior with :
I open this issue just in case I face a bug.
If this is the expected behavior feel free to close the issue.
The text was updated successfully, but these errors were encountered: