def dump(args):
    """Load the build graph for a target and dump it to stdout."""
    if len(args) != 1:
        log.error('One target required.')
        app.quit(1)

    try:
        bb = Butcher()
        bb.load_graph(args[0])
    except error.BrokenGraph as lolno:
        log.fatal(lolno)
        app.quit(1)
    print "Nodes:"
    pprint.pprint(bb.graph.node)
    print "Edges:"
    pprint.pprint(bb.graph.edge)
def dump ( args ) : if len ( args ) != 1 : log . error ( 'One target required.' ) app . quit ( 1 ) try : bb = Butcher ( ) bb . load_graph ( args [ 0 ] ) except error . BrokenGraph as lolno : log . fatal ( lolno ) app . quit ( 1 ) print "Nodes:" pprint . pprint ( bb . graph . node ) print "Edges:" pprint . pprint ( bb . graph . edge )
Load the build graph for a target and dump it to stdout.