Skip to content

Commit

Permalink
Merge pull request #368 from Jaagrav/master
Browse files Browse the repository at this point in the history
Fix support for additional arguments in DefaultCommand
  • Loading branch information
keizer619 authored Nov 4, 2024
2 parents 8427ae6 + dc23cbc commit 329f86e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import picocli.CommandLine;

import java.io.PrintStream;
import java.util.List;

/**
* This class represents the "default" command required by picocli.
Expand All @@ -37,6 +38,9 @@ public class DefaultCommand extends Command implements BCommand {
@CommandLine.Option(names = { "--version", "-v" }, hidden = true)
private boolean versionFlag;

@CommandLine.Parameters(description = "Help command name")
private List<String> helpCommands;

public DefaultCommand(PrintStream printStream) {
super(printStream);
}
Expand Down

0 comments on commit 329f86e

Please sign in to comment.