We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61a0227 commit c4a1ab4Copy full SHA for c4a1ab4
src/main/java/picocli/CommandLine.java
@@ -5753,7 +5753,7 @@ private CommandSpec(CommandUserObject userObject) {
5753
5754
private CommandSpec copy() {
5755
Object obj = userObject.type == null ? userObject.instance : userObject.type;
5756
- CommandSpec result = obj == null ? CommandSpec.create() : CommandSpec.forAnnotatedObject(obj);
+ CommandSpec result = obj == null ? CommandSpec.create() : CommandSpec.forAnnotatedObject(obj, userObject.factory);
5757
result.commandLine = commandLine;
5758
result.parent = parent;
5759
result.methodParams = methodParams;
0 commit comments