Skip to content

Commit

Permalink
[cli] add missing properties in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogDevelopper committed Oct 18, 2024
1 parent 4871bb1 commit 4201866
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public class ConsulPopulateCommand implements Runnable {
String consulHost;
@Option(names = {"--consul.port"}, defaultValue = "8500")
int consulPort;
@Option(names = {"--consul.acl-token"})
String aclToken;
@Option(names = {"--consul.dc"})
String dc;
@Option(names = {"--consul.timeout"})
Long timeout;
@Option(names = {"--consul.kv.prefix"})
String consulKvPrefix;
@Option(names = {"--consul.kv.version"})
Expand All @@ -36,12 +42,12 @@ public class ConsulPopulateCommand implements Runnable {
@Option(names = {"--consul.files.rootPath", "--consul.files.root-path"})
String consulFileRootPath;

public static void main(String[] args) {
public static void main(final String[] args) {
try {
final var exitCode = PicocliRunner.execute(ConsulPopulateCommand.class, args);

System.exit(exitCode);
} catch (Exception e) {
} catch (final Exception e) {
log.error("Unexpected exception", e);
System.exit(CommandLine.ExitCode.SOFTWARE);
}
Expand Down

0 comments on commit 4201866

Please sign in to comment.