Updated Branches: refs/heads/master d35d164a8 -> b41d428ad
Use tree map to sorted the command help menu Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/3b02ce25 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/3b02ce25 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/3b02ce25 Branch: refs/heads/master Commit: 3b02ce255fd6e8960e23716246e30ac460434b37 Parents: dc493cc Author: Manula Thantriwatte <[email protected]> Authored: Wed Dec 18 15:05:44 2013 +0530 Committer: Manula Thantriwatte <[email protected]> Committed: Wed Dec 18 15:05:44 2013 +0530 ---------------------------------------------------------------------- .../main/java/org/apache/stratos/cli/StratosApplication.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/3b02ce25/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/StratosApplication.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/StratosApplication.java b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/StratosApplication.java index 195b99f..dd2bda5 100644 --- a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/StratosApplication.java +++ b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/StratosApplication.java @@ -23,10 +23,7 @@ import static org.apache.stratos.cli.utils.CliConstants.STRATOS_HISTORY_DIR; import java.io.File; import java.io.PrintWriter; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; +import java.util.*; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; @@ -57,7 +54,7 @@ public class StratosApplication extends CommandLineApplication<StratosCommandCon private final Options options; public StratosApplication() { - commands = new HashMap<String, Command<StratosCommandContext>>(); + commands = new TreeMap<String, Command<StratosCommandContext>>(); context = new StratosCommandContext(this); options = constructOptions();
