feat: udpates

This commit is contained in:
2025-05-02 22:34:50 +08:00
parent bdcd3113b5
commit 7ee2add59f
2 changed files with 2 additions and 4 deletions

View File

@@ -5,8 +5,6 @@ import picocli.CommandLine;
import picocli.CommandLine.Command; import picocli.CommandLine.Command;
import picocli.CommandLine.Option; import picocli.CommandLine.Option;
import java.io.File;
@Command(name = "example", @Command(name = "example",
mixinStandardHelpOptions = true, mixinStandardHelpOptions = true,
version = "Picocli example 1.0", version = "Picocli example 1.0",

View File

@@ -1,9 +1,9 @@
package me.hatter.demo.commands; package me.hatter.demo.commands;
import picocli.CommandLine; import picocli.CommandLine.Command;
import picocli.CommandLine.Option; import picocli.CommandLine.Option;
@CommandLine.Command(name = "demo", description = "Demo subcommand") @Command(name = "demo", description = "Demo subcommand")
public class DemoSubCommand implements Runnable { public class DemoSubCommand implements Runnable {
@Option(names = {"-h", "--help"}, usageHelp = true, description = "Show this help message and exit.")//, hidden = true) @Option(names = {"-h", "--help"}, usageHelp = true, description = "Show this help message and exit.")//, hidden = true)
boolean helpRequested = false; boolean helpRequested = false;