> > So I played around with this, and the first problem is that your current code > can't handle default values. I fixed that in options.py, but it still > doesn't print the defaults nicely, e.g., instead of: > > --test-variants=TEST_VARIANTS > comma-separated build variants to test (default: > 'opt') > --compile-variants=VARIANTS > comma-separated build variants to compile only (not > test) (default: 'debug,fast') > > we get: > > --test-variants=TEST_VARIANTS > comma-separated build variants to test (default: > '['opt']') > --compile-variants=VARIANTS > comma-separated build variants to compile only (not > test) (default: '['debug', 'fast']') > > Not tragic, but I like the former better, so I may keep the original solution. > > Maybe overkill, but you could probably subclass list and simply define a new __str__ for it to get the printout that you like.
Nate _______________________________________________ gem5-dev mailing list gem5-dev@m5sim.org http://m5sim.org/mailman/listinfo/gem5-dev