private String getSurrogateKeyForTaggedOption ( final String rawOptionString , // the raw option string provided by the user, including the prefix and option name final String rawArgumentValue , // the raw argument value provided by the user final String tagString // the tag string that has been peeled off of the raw option string, including logical name and any attributes ) { final String surrogateKey = makeSurrogateKey ( rawOptionString , rawArgumentValue ) ; if ( null != tagSurrogates . put ( surrogateKey , Pair . of ( tagString , rawArgumentValue ) ) ) { throw new CommandLineException . BadArgumentValue ( String . format ( "The argument value: \"%s %s\" was duplicated on the command line" , rawOptionString , rawArgumentValue ) ) ; } return surrogateKey ; }
Stores the option string and value in the tagSurrogates hash map and returns a surrogate key .