import sys
import traildb

for cookie, trail in traildb.TrailDB(sys.argv[1]).crumbs():
    print cookie, list(trail)

import sys
import traildb

for cookie, trail in traildb.TrailDB(*(sys.argv[1:] or ['a.tdb'])).crumbs():
    print cookie, list(trail)

make a.tdb the default name