How to use the basedir function from commander

Find comprehensive JavaScript commander.basedir code examples handpicked from public code repositorys.

86
87
88
89
90
91
92
93
94
95
if (rc.config) {
        log('using runtime config %s', rc.config);
}

if (program.basedir) {
        config.baseDir = program.basedir;
}

if (program.exclude) {
        config.excludeRegExp = [program.exclude];
fork icon315
star icon0
watch icon54

183
184
185
186
187
188
189
190
191
192
if (!commander.basedir) {
    beezlib.logger.error('Please specify basedir: the path to the project to be compiled. -b --basedir <path>');
    process.exit(2);
}

this.config.basedir = commander.basedir;

if (!beezlib.fsys.isDirectorySync(this.config.basedir)) {
    beezlib.logger.error('"--basedir" is not a directory. param:', this.config.basedir);
    process.exit(2);
fork icon13
star icon98
watch icon26

Other functions in commander

Sorted by popularity

function icon

commander.Option is the most popular function in commander (1786 examples)