mirror of
https://github.com/strapi/strapi.git
synced 2025-10-16 18:44:18 +00:00
improve help
This commit is contained in:
parent
d8e3d89040
commit
ed6ac61c32
@ -91,11 +91,13 @@ const createStrapiInstance = async (logLevel = 'error') => {
|
|||||||
const transferDataTypes = Object.keys(TransferGroupPresets);
|
const transferDataTypes = Object.keys(TransferGroupPresets);
|
||||||
const excludeOption = new Option(
|
const excludeOption = new Option(
|
||||||
'--exclude <comma-separated data types>',
|
'--exclude <comma-separated data types>',
|
||||||
'Exclude this data.'
|
`Exclude this data. Options used here override --only. Available types: ${transferDataTypes.join(
|
||||||
|
','
|
||||||
|
)}`
|
||||||
).argParser(getParseListWithChoices(transferDataTypes, 'Invalid options for "exclude"'));
|
).argParser(getParseListWithChoices(transferDataTypes, 'Invalid options for "exclude"'));
|
||||||
const onlyOption = new Option(
|
const onlyOption = new Option(
|
||||||
'--only <command-separated data types>',
|
'--only <command-separated data types>',
|
||||||
'Include only this data.'
|
`Include only this data. Available types: ${transferDataTypes.join(',')}`
|
||||||
).argParser(getParseListWithChoices(transferDataTypes, 'Invalid options for "only"'));
|
).argParser(getParseListWithChoices(transferDataTypes, 'Invalid options for "only"'));
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user