We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8751613 commit c738595Copy full SHA for c738595
1 file changed
src/main/java/org/apache/commons/cli/ParseTest.java
@@ -25,6 +25,7 @@ public static void main(String[] args) throws ParseException {
25
26
options.addOption("h",false, "Hello world");
27
options.addOption("t",false,"display current time");
28
+ options.addOption("d",false,"hello from dockerhub");
29
30
CommandLineParser parser = new DefaultParser();
31
CommandLine cmd = parser.parse(options,args);
@@ -38,5 +39,8 @@ public static void main(String[] args) throws ParseException {
38
39
ZonedDateTime zdt = ZonedDateTime.now( z ) ;
40
System.out.println(dtf.format(zdt));
41
}
42
+ if(cmd.hasOption("d")){
43
+ System.out.println("hello from Dockerhub");
44
+ }
45
46
0 commit comments