opentxs: merge copy&pasted CLI helper code