예제 #1
0
파일: Cmd.java 프로젝트: 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;
 }