feat: udpates
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user