summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2014-04-16 18:38:10 -0700
committerMatthew Harmsen <mharmsen@redhat.com>2014-04-17 11:24:50 -0700
commit611419fcd8a19c06ca651add93deb66bdd0c55d5 (patch)
tree4c2ca4e4f2253556aa08f38f27e215f78a1c1383 /base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java
parent7c7cbb84f1c43ce3fbe33676f3e0f07fb7ecc2f9 (diff)
downloadpki-611419fcd8a19c06ca651add93deb66bdd0c55d5.tar.gz
pki-611419fcd8a19c06ca651add93deb66bdd0c55d5.tar.xz
pki-611419fcd8a19c06ca651add93deb66bdd0c55d5.zip
CLI argument parsing and bad return codes
* PKI TRAC Ticket #843 - Incorrect CLI argument parsing * PKI TRAC Ticket #918 - CLI commands does not return code '1' for the failures
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java
index c715a3edc..b5820661b 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingShowCLI.java
@@ -61,6 +61,12 @@ public class ProfileMappingShowCLI extends CLI {
System.exit(1);
}
+ if (cmd.hasOption("help")) {
+ // Display usage
+ printHelp();
+ System.exit(0);
+ }
+
String[] cmdArgs = cmd.getArgs();
if (cmdArgs.length != 1) {