docs: update yargs and readme

This commit is contained in:
Daniel Perez Alvarez
2020-05-18 10:01:37 -07:00
committed by Gajus Kuizinas
parent 38c4094655
commit 64af79d428
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -53,6 +53,14 @@ const argv = yargs
type: 'array'
}
})
.options({
outputFile: {
alias: 'o',
default: 'index.js',
description: 'Output file',
type: 'string',
}
})
.example(
'create-index ./src ./src/utilities',
'Creates or updates an existing create-index index file in the target (./src, ./src/utilities) directories.'