wldbg: put parsing arguments into a function

structuralize!