docs: update yargs and readme
This commit is contained in:
committed by
Gajus Kuizinas
parent
38c4094655
commit
64af79d428
@@ -96,7 +96,7 @@ Options:
|
|||||||
--extensions, -x Allows some extensions to be parsed as valid source.
|
--extensions, -x Allows some extensions to be parsed as valid source.
|
||||||
First extension will always be preferred to homonyms
|
First extension will always be preferred to homonyms
|
||||||
with another allowed extension.
|
with another allowed extension.
|
||||||
[array] [default: ["js"]]
|
--outputFile, -o Output file [string] [default: "index.js"] [array] [default: ["js"]]
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
create-index ./src ./src/utilities Creates or updates an existing
|
create-index ./src ./src/utilities Creates or updates an existing
|
||||||
|
|||||||
@@ -53,6 +53,14 @@ const argv = yargs
|
|||||||
type: 'array'
|
type: 'array'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.options({
|
||||||
|
outputFile: {
|
||||||
|
alias: 'o',
|
||||||
|
default: 'index.js',
|
||||||
|
description: 'Output file',
|
||||||
|
type: 'string',
|
||||||
|
}
|
||||||
|
})
|
||||||
.example(
|
.example(
|
||||||
'create-index ./src ./src/utilities',
|
'create-index ./src ./src/utilities',
|
||||||
'Creates or updates an existing create-index index file in the target (./src, ./src/utilities) directories.'
|
'Creates or updates an existing create-index index file in the target (./src, ./src/utilities) directories.'
|
||||||
|
|||||||
Reference in New Issue
Block a user