public CommandCompleter(Map<String, Command<StratosCommandContext>> commands) {
if (logger.isDebugEnabled()) {
logger.debug("Creating auto complete for {} commands", commands.size());
}
argumentMap = new HashMap<String, Collection<String>>();
defaultCommandCompleter = new StringsCompleter(commands.keySet());
helpCommandCompleter = new ArgumentCompleter(new StringsCompleter(CliConstants.HELP_ACTION),
defaultCommandCompleter);
for (String action : commands.keySet()) {
Command<StratosCommandContext> command = commands.get(action);
Options commandOptions = command.getOptions();
if (commandOptions != null) {