public AppiumServiceBuilder withArgument ( ServerArgument argument , String value ) { String argName = argument . getArgument ( ) . trim ( ) . toLowerCase ( ) ; if ( "--port" . equals ( argName ) || "-p" . equals ( argName ) ) { usingPort ( Integer . valueOf ( value ) ) ; } else if ( "--address" . equals ( argName ) || "-a" . equals ( argName ) ) { withIPAddress ( value ) ; } else if ( "--log" . equals ( argName ) || "-g" . equals ( argName ) ) { withLogFile ( new File ( value ) ) ; } else { serverArguments . put ( argName , value ) ; } return this ; }
Adds a server argument .