#NEWLINE# def manipulate_task_graph( self , task_id , start_at , skip , only ) : #NEWLINE# #INDENT# if ( only is not None ) : #NEWLINE# #INDENT# if ( ( start_at is not None ) or ( task_id is not None ) ) : #NEWLINE# #INDENT# self . option_parser . error ( '--only can not be used with --start-at or specifying a TASK_ID' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# start_at = task_id = only #NEWLINE# #UNINDENT# #UNINDENT# if ( ( task_id is not None ) or ( start_at is not None ) ) : #NEWLINE# #INDENT# self . task_graph = self . task_graph . subgraph_needed_for ( start_at , task_id ) #NEWLINE# #UNINDENT# if skip : #NEWLINE# #INDENT# self . task_graph . remove_node_substituting_dependencies ( skip )