public KnownArgumentsInfo(@NotNull final Collection<Argument> arguments,final int minArguments,final int maxArguments){
  Preconditions.checkArgument(!arguments.isEmpty(),"At least one argument should be provided");
  myArguments.addAll(arguments);
  myMinArguments=minArguments;
  myMaxArguments=maxArguments;
}

public KnownArgumentsInfo ( @ NotNull final Collection < Argument > arguments , final int minArguments , final int maxArguments ) { Preconditions . checkArgument ( ! arguments . isEmpty ( ) , "At least one argument should be provided" ) ; myArguments . addAll ( arguments ) ; myMinArguments = minArguments ; myMaxArguments = maxArguments ; }
for commands with finite number of values last argument accepts .
