traceflags: fix --trace-help

This commit is contained in:
Nathan Binkert
2009-02-15 20:39:12 -08:00
parent de72083805
commit e0f425bb94
3 changed files with 19 additions and 18 deletions

View File

@@ -30,3 +30,16 @@ from attrdict import attrdict, optiondict
from misc import *
from multidict import multidict
import jobfile
def print_list(items, indent=4):
line = ' ' * indent
for i,item in enumerate(items):
if len(line) + len(item) > 76:
print line
line = ' ' * indent
if i < len(items) - 1:
line += '%s, ' % item
else:
line += item
print line