public CommandOption findLong ( String argument ) { Assert . notNullOrEmptyTrimmed ( argument , "Missing long name!" ) ; Optional < CommandOption > found = options . stream ( ) . filter ( o -> o . isLong ( argument ) ) . findFirst ( ) ; return found . orElse ( null ) ; }
Finds option by long name