add "-d" cmdline flag, displays a JSON description of the circuit