@Override
    public void propertyName(int index, String propertyName)
            throws OperationFormatException {

        // TODO this is not nice
        if(propertyName.length() > 1 && propertyName.charAt(0) == '-' && propertyName.charAt(1) == '-') {
            assertValidParameterName(propertyName.substring(2));
        } else if(propertyName.length() > 0 && propertyName.charAt(0) == '-') {
            assertValidParameterName(propertyName.substring(1));
        } else {
            assertValidParameterName(propertyName);
        }

        validatedPropertyName(index, propertyName);
    }
@ Override public void propertyName ( int index , String propertyName ) throws OperationFormatException { if ( propertyName . length ( ) > 1 && propertyName . charAt ( 0 ) == '-' && propertyName . charAt ( 1 ) == '-' ) { assertValidParameterName ( propertyName . substring ( 2 ) ) ; } else if ( propertyName . length ( ) > 0 && propertyName . charAt ( 0 ) == '-' ) { assertValidParameterName ( propertyName . substring ( 1 ) ) ; } else { assertValidParameterName ( propertyName ) ; } validatedPropertyName ( index , propertyName ) ; }
/* (non-Javadoc)
@see org.jboss.as.cli.operation.OperationParser.CallbackHandler#propertyName(java.lang.String)