[libvirt PATCH 13/19] commandhelper: Factor out printInput