diff options
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java')
-rw-r--r-- | base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java index 9d87cc43c..e125629e6 100644 --- a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileMappingFindCLI.java @@ -41,7 +41,7 @@ public class ProfileMappingFindCLI extends CLI { } public void printHelp() { - formatter.printHelp(getFullName() + " [OPTIONS...]", options); + formatter.printHelp(getFullName() + " [FILTER] [OPTIONS...]", options); } public void execute(String[] args) throws Exception { @@ -65,13 +65,16 @@ public class ProfileMappingFindCLI extends CLI { System.exit(1); } + String[] cmdArgs = cmd.getArgs(); + String filter = cmdArgs.length > 0 ? cmdArgs[0] : null; + String s = cmd.getOptionValue("start"); Integer start = s == null ? null : Integer.valueOf(s); s = cmd.getOptionValue("size"); Integer size = s == null ? null : Integer.valueOf(s); - ProfileMappingCollection result = profileMappingCLI.profileMappingClient.findProfileMappings(start, size); + ProfileMappingCollection result = profileMappingCLI.profileMappingClient.findProfileMappings(filter, start, size); MainCLI.printMessage(result.getTotal() + " entries matched"); if (result.getTotal() == 0) return; |