public CommandOption < T > longCommand ( String longName ) { Assert . notNullOrEmptyTrimmed ( longName , "Missing long name!" ) ; longName = StringUtils . trim ( longName ) ; Assert . isTrue ( command . length ( ) <= longName . length ( ) , "Long name can't be shorter than command name!" ) ; String compare = StringUtils . sanitizeWhitespace ( longName ) ; Assert . isTrue ( longName . equals ( compare ) , "Option long name can not contain whitespace characters!" ) ; longCommand = longName ; return this ; }
Sets long command name