Btw, it seems that context is used only within submit and listen functions. So, maybe you can define a "miniclient" struct that has submit and listen functions, and does the printing internally?
RunArgs might work with MiniClient trait. The struct that implements MiniClient might contain both configuration and debugging logic, which RunArgs does not care about.
_Originally posted by @0x009922 in https://github.com/hyperledger/iroha/pull/3608#discussion_r1230562370_