Prathamesh Musale
c3f8d53f09
- Setup eslint with husky for precommit lint - Fix existing lint errors - Setup linter CI Reviewed-on: #54 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
30 lines
622 B
TypeScript
30 lines
622 B
TypeScript
import yargs from 'yargs/yargs';
|
|
import { hideBin } from 'yargs/helpers';
|
|
|
|
// eslint-disable-next-line no-unused-expressions
|
|
yargs(hideBin(process.argv))
|
|
.options({
|
|
verbose: {
|
|
description: 'Verbose output',
|
|
demand: false,
|
|
default: false,
|
|
type: 'boolean',
|
|
alias: 'v'
|
|
},
|
|
config: {
|
|
alias: 'c',
|
|
default: 'config.yml',
|
|
describe: 'Config file path.',
|
|
type: 'string'
|
|
},
|
|
output: {
|
|
alias: 'o',
|
|
describe: 'Gives output in json format when specified.',
|
|
type: 'string'
|
|
}
|
|
})
|
|
.commandDir('cmds')
|
|
.demandCommand()
|
|
.help()
|
|
.argv;
|