Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
26 lines
671 B
Plaintext
26 lines
671 B
Plaintext
//JAVA 25+
|
|
//DEPS info.picocli:picocli:4.7.7
|
|
|
|
import picocli.CommandLine;
|
|
import picocli.CommandLine.Command;
|
|
import picocli.CommandLine.Parameters;
|
|
|
|
import java.util.concurrent.Callable;
|
|
|
|
@Command(name = "{baseName}", mixinStandardHelpOptions = true, version = "{baseName} 0.1")
|
|
public class {baseName} implements Callable<Integer> {
|
|
|
|
@Parameters(index = "0", description = "Input to process.")
|
|
String input;
|
|
|
|
@Override
|
|
public Integer call() {
|
|
System.out.println("{baseName} processed: " + input);
|
|
return 0;
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
System.exit(new CommandLine(new {baseName}()).execute(args));
|
|
}
|
|
}
|