From 7ee2add59f8c9385ec23fa6c2ada192516a430be Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Fri, 2 May 2025 22:34:50 +0800 Subject: [PATCH] feat: udpates --- src/main/java/me/hatter/demo/PicocliCli.java | 2 -- src/main/java/me/hatter/demo/commands/DemoSubCommand.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/hatter/demo/PicocliCli.java b/src/main/java/me/hatter/demo/PicocliCli.java index 1f34620..51d16f1 100644 --- a/src/main/java/me/hatter/demo/PicocliCli.java +++ b/src/main/java/me/hatter/demo/PicocliCli.java @@ -5,8 +5,6 @@ import picocli.CommandLine; import picocli.CommandLine.Command; import picocli.CommandLine.Option; -import java.io.File; - @Command(name = "example", mixinStandardHelpOptions = true, version = "Picocli example 1.0", diff --git a/src/main/java/me/hatter/demo/commands/DemoSubCommand.java b/src/main/java/me/hatter/demo/commands/DemoSubCommand.java index 647ce20..8494f8d 100644 --- a/src/main/java/me/hatter/demo/commands/DemoSubCommand.java +++ b/src/main/java/me/hatter/demo/commands/DemoSubCommand.java @@ -1,9 +1,9 @@ package me.hatter.demo.commands; -import picocli.CommandLine; +import picocli.CommandLine.Command; import picocli.CommandLine.Option; -@CommandLine.Command(name = "demo", description = "Demo subcommand") +@Command(name = "demo", description = "Demo subcommand") public class DemoSubCommand implements Runnable { @Option(names = {"-h", "--help"}, usageHelp = true, description = "Show this help message and exit.")//, hidden = true) boolean helpRequested = false;