some commander.js utility functions