#NEWLINE# def validate_boards( ctx , param , value ) : #NEWLINE# #INDENT# unknown_boards = ( set ( ctx ) - set ( get_boards ( ) . keys ( ) ) ) #NEWLINE# try : #NEWLINE# #INDENT# assert ( not unknown_boards ) #NEWLINE# return value #NEWLINE# #UNINDENT# except AssertionError : #NEWLINE# #INDENT# raise click . BadParameter ( ( '%s. Please search for the board types using `platformio boards` command' % ', ' . join ( unknown_boards ) ) )