1
0
Fork 0

fix: use global yargs to fix bundle

This commit is contained in:
ssube 2019-07-04 11:11:30 -05:00
parent 81d06c3b57
commit 23b791f9ce
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 5 deletions

View File

@ -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 <mode> [options]`)
const args = usage(`Usage: salty-dog <mode> [options]`)
.command({
command: ['check', '*'],
describe: 'validate the source documents',