"""VCD tracker debug."""

from argparse import ArgumentParser
from hdltools.vcd.tracker import VCDValueTracker
from hdltools.patterns import Pattern


if __name__ == "__main__":

    parser = ArgumentParser()
    parser.add_argument("vcd")

    args = parser.parse_args()

    with open(args.vcd, "r") as data:
        vcddata = data.read()

    tracker = VCDValueTracker(Pattern("1010"))
    tracker.parse(vcddata)

    tracker.scope_hier.dump()

@@ -232,16 +232,76 @@
 t(%22vcd%22)
+%0A    parser.add_argument(%22--dump-hier%22, action=%22store_true%22)
 %0A%0A    ar
@@ -470,16 +470,43 @@
 ddata)%0A%0A
+    if args.dump_hier:%0A    
     trac

add argumentt