public void addOption(@NonNull NamedOption namedOption) {
      options.put(namedOption.getName(), namedOption);
      optionSet.add(namedOption);
      if (namedOption.getAliases() != null) {
         for (String alias : namedOption.getAliases()) {
            options.put(alias, namedOption);
         }
      }
   }
public void addOption ( @ NonNull NamedOption namedOption ) { options . put ( namedOption . getName ( ) , namedOption ) ; optionSet . add ( namedOption ) ; if ( namedOption . getAliases ( ) != null ) { for ( String alias : namedOption . getAliases ( ) ) { options . put ( alias , namedOption ) ; } } }
Add option.

@param namedOption the named option