public Optional < String > arg ( final String name ) { int index = _args . indexOf ( "--" + name ) ; if ( index == - 1 ) index = _args . indexOf ( "-" + name ) ; return index >= 0 && index < _args . length ( ) - 1 ? Optional . of ( _args . get ( index + 1 ) ) : Optional . empty ( ) ; }
Return the parameter with the given name .