1.1 --- a/test.py Fri Jun 03 01:31:56 2011 +0200
1.2 +++ b/test.py Fri Jun 03 01:32:30 2011 +0200
1.3 @@ -69,6 +69,19 @@
1.4 print "Generating report in", directory
1.5 micropython.report.report(p, directory)
1.6
1.7 + if "-G" in args:
1.8 + try:
1.9 + graph = args[args.index("-G") + 1]
1.10 + except IndexError:
1.11 + print "No file specified. Not generating graph."
1.12 + else:
1.13 + print "Generating graph as", graph
1.14 + f = open(graph, "w")
1.15 + try:
1.16 + get_graph(p, f)
1.17 + finally:
1.18 + f.close()
1.19 +
1.20 # Build the program.
1.21
1.22 if "-m" in args or "-t" in args: