Switch command-line utils to new nameopt API.