UNPKG

neobrag

Version:

neobrag lets you brag to your fellow developers

31 lines (29 loc) 937 B
const commandLineArgs = require('command-line-args'); const optionDefinitions = [ { name: 'use-cache', alias: 'u', type: Boolean, description: 'Skips downloading the files in config and instead goes directly to the directory you specify' }, { name: 'config', alias: 'c', type: String, description : 'Pass in a file with git repos separated by newlines; becomes the new config file' }, { name: 'name-mapping', alias: 'n', type: String, description : 'Pass in a JSON file with names that are mapped to whatever you like; overrides whatever git blame outputs. Useful for when you need to know who is who.' }, { name: 'quick', alias: 'q', type: Boolean, description : 'Just show me the results!' }, ]; const options = commandLineArgs(optionDefinitions); module.exports = options;