private String getNameValuePairForDisplay ( final Object value ) { if ( value != null ) { if ( argumentAnnotation . sensitive ( ) ) { return String . format ( "--%s ***********" , getLongName ( ) ) ; } else { // if we're displaying a tagged argument, include the tag name and attributes if ( value instanceof TaggedArgument ) { return String . format ( "--%s %s" , TaggedArgumentParser . getDisplayString ( getLongName ( ) , ( TaggedArgument ) value ) , value ) ; } else { return String . format ( "--%s %s" , getLongName ( ) , value ) ; } } } return "" ; }
Get a name value pair for this argument and a value suitable for display .