You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
395 B

const { core } = require('./cli-flags');
// Contains an array of strings with core cli flags and their aliases
const names = core
.map(({ alias, name }) => {
if (name === 'help') return [];
if (alias) {
return [`--${name}`, `-${alias}`];
}
return [`--${name}`];
})
.reduce((arr, val) => arr.concat(val), []);
module.exports = { names };