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
+1 -1
View File
@@ -96,7 +96,7 @@ Options:
--extensions, -x Allows some extensions to be parsed as valid source.
First extension will always be preferred to homonyms
with another allowed extension.
[array] [default: ["js"]]
--outputFile, -o Output file [string] [default: "index.js"] [array] [default: ["js"]]
Examples:
create-index ./src ./src/utilities Creates or updates an existing
+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.'