moelders/commander.js — pull request #1 by moelders (2012-12-14 19:29:49+00:00)
Title: IMPL multi-level option values

Multi-level options:
program
.option('-p, --peppers.name', 'Add peppers name')
.option('-c, --bbq.sauce.type', 'Sauce type for the bbq')
.parse(process.argv);

// getValue(name):
program.getValue("peppers.name");

// getValues():
program.getValues(); // { peppers: { name: "" }, bbq: { sauce: { type: "" } } }