visionmedia/commander.js — Issue #26: Run a function on no actions
Author: johnnywengluu
Created: 2011-11-20 07:38:09+00:00
State: open

Is it possible to run a function when there is no actions specified.

Eg if my binary is named "app" and I run "app" then I wanna display the help list.

I can parse the process.argv but I wondered if there is a built in way to do this.