#NEWLINE# def main( ) : #NEWLINE# #INDENT# 'Primary Legit command dispatch.' #NEWLINE# command = Command . lookup ( args . get ( 0 ) ) #NEWLINE# if command : #NEWLINE# #INDENT# arg = args . get ( 0 ) #NEWLINE# args . remove ( arg ) #NEWLINE# command . __call__ ( args ) #NEWLINE# sys . exit ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if args . contains ( ( '-h' , '--help' ) ) : #NEWLINE# #INDENT# display_help ( ) #NEWLINE# sys . exit ( 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if args . contains ( ( '-v' , '--version' ) ) : #NEWLINE# #INDENT# display_version ( ) #NEWLINE# sys . exit ( 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if settings . git_transparency : #NEWLINE# #INDENT# git_args = list ( sys . argv ) #NEWLINE# if ( settings . git_transparency is True ) : #NEWLINE# #INDENT# settings . git_transparency = os . environ . get ( 'GIT_PYTHON_GIT_EXECUTABLE' , 'git' ) #NEWLINE# #UNINDENT# git_args [ 0 ] = settings . git_transparency #NEWLINE# sys . exit ( call ( ' ' . join ( command ) , shell = True ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# show_error ( colored . red ( 'Unknown command {0}' . format ( args . get ( 0 ) ) ) ) #NEWLINE# display_info ( ) #NEWLINE# sys . exit ( 1 )