openshift.ks: Refactor arguments parsing