Skip to content

Commit 2444708

Browse files
[cli] add missing properties in cli
1 parent 4871bb1 commit 2444708

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

consul-populate-cli/src/main/java/com/frogdevelopment/consul/populate/ConsulPopulateCommand.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ public class ConsulPopulateCommand implements Runnable {
2525
String consulHost;
2626
@Option(names = {"--consul.port"}, defaultValue = "8500")
2727
int consulPort;
28+
@Option(names = {"--consul.acl-token"})
29+
String aclToken;
30+
@Option(names = {"--consul.dc"})
31+
String dc;
32+
@Option(names = {"--consul.timeout"})
33+
Long timeout;
2834
@Option(names = {"--consul.kv.prefix"})
2935
String consulKvPrefix;
3036
@Option(names = {"--consul.kv.version"})
@@ -36,12 +42,12 @@ public class ConsulPopulateCommand implements Runnable {
3642
@Option(names = {"--consul.files.rootPath", "--consul.files.root-path"})
3743
String consulFileRootPath;
3844

39-
public static void main(String[] args) {
45+
public static void main(final String[] args) {
4046
try {
4147
final var exitCode = PicocliRunner.execute(ConsulPopulateCommand.class, args);
4248

4349
System.exit(exitCode);
44-
} catch (Exception e) {
50+
} catch (final Exception e) {
4551
log.error("Unexpected exception", e);
4652
System.exit(CommandLine.ExitCode.SOFTWARE);
4753
}

0 commit comments

Comments
 (0)