1 package de.dlr.bt.stc.cli; 2 3 import ch.qos.logback.classic.Level; 4 import lombok.Getter; 5 import picocli.CommandLine.Option; 6 7 @Getter 8 public class CLIOptions { 9 @Option(names = { "-c", "--configfolder" }, description = "Configuration folder", defaultValue = "config") 10 private String configFolder; 11 12 @Option(names = "--no-opcuaserver", description = "Run OPC/UA server. True by default", defaultValue = "true", negatable = true) 13 private boolean runOpcuaServer; 14 @Option(names = { "-p", "--serverport" }, description = "OPC/UA server TCP port", defaultValue = "4840") 15 private Integer opcuaServerPort; 16 17 @Option(names = { "-h", "--help" }, usageHelp = true, description = "Display help information") 18 private boolean usageHelpRequested; 19 20 @Option(names = { "-l", 21 "--loglevel" }, description = "Log level (one of debug, info, warn, error)", converter = LogLevelConverter.class) 22 private Level logLevel; 23 24 @Option(names = { "--force-headless" }, description = "Force use of headless mode", defaultValue = "false") 25 private boolean forceHeadless; 26 }