summaryrefslogtreecommitdiffstats
path: root/lib/cli/options.js
blob: 26581cba748443cc93e688f2e2244c5ea575934d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var Logger = require('../utils/logger');

var logOptions = {
    name: 'log',
    description: 'Minimum log level to display',
    values: Object.keys(Logger.LEVELS)
        .map(function(s) {
            return s.toLowerCase();
        }),
    defaults: 'info'
};

var formatOption = {
    name: 'format',
    description: 'Format to build to',
    values: ['website', 'json', 'ebook'],
    defaults: 'website'
};

module.exports = {
    log: logOptions,
    format: formatOption
};