Exemplo n.º 1
0
Arquivo: Cmd.java Projeto: Rojoss/Boxx
 /**
  * Get the map with all the registered arguments.
  *
  * <p>If this command is a sub command this will include all the arguments from the parent.
  *
  * @return Map with registered arguments.
  */
 public LinkedHashMap<String, Argument> getAllArguments() {
   if (isBase()) {
     return getArguments();
   }
   LinkedHashMap<String, Argument> arguments = new LinkedHashMap<>(getBaseCmd().getArguments());
   arguments.putAll(this.getArguments());
   return arguments;
 }