How to use the describe function from optimist

Find comprehensive JavaScript optimist.describe code examples handpicked from public code repositorys.

134
135
136
137
138
139
140
141
142
143
	optimist = optimist.default('f', path.join('config', 'windows.json'));
} else {
	optimist = optimist.default('f', path.join('config', 'sabi.json'));
}
// optimist = optimist.default('p', 'sage2');
optimist = optimist.describe('f', 'Load a configuration file');
optimist = optimist.describe('p', 'Create a password for the sage2 user');
var argv = optimist.argv;
if (argv.h) {
	optimist.showHelp();
fork icon0
star icon0
watch icon0