#NEWLINE# def run( ) : #NEWLINE# #INDENT# parser = get_parser ( ) #NEWLINE# if ( len ( sys . argv ) < 3 ) : #NEWLINE# #INDENT# sys . argv . append ( '--help' ) #NEWLINE# #UNINDENT# args = parser . parse_args ( ) #NEWLINE# level = ( logging . DEBUG if args . verbose else logging . INFO ) #NEWLINE# format = '%(levelname)s\t%(funcName)s\t%(message)s' #NEWLINE# logging . basicConfig ( format = format , level = level ) #NEWLINE# pb = PyBlue ( root = args . root , args = args ) #NEWLINE# if args . output : #NEWLINE# #INDENT# pb . generate ( args . output ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pb . serve ( port = args . port )