diff --git a/src/config/args.ts b/src/config/args.ts index ae4ee10..44f1c66 100644 --- a/src/config/args.ts +++ b/src/config/args.ts @@ -1,9 +1,7 @@ -import { Options, showCompletionScript } from 'yargs'; +import { Options, showCompletionScript, usage } from 'yargs'; import { VERSION_INFO } from 'src/version'; -const yargs = require('yargs/yargs'); - export const CONFIG_ARGS_NAME = 'config-name'; export const CONFIG_ARGS_PATH = 'config-path'; @@ -24,8 +22,7 @@ export interface Args { export function parseArgs(): Args { let mode = 'check'; - const args = yargs(process.argv.slice(2)) - .usage(`Usage: salty-dog [options]`) + const args = usage(`Usage: salty-dog [options]`) .command({ command: ['check', '*'], describe: 'validate the source documents',