argAddChangeRootName function
void
argAddChangeRootName(
- ArgParser argParser, {
- required bool isDocument,
})
Implementation
void argAddChangeRootName(
ArgParser argParser, {
required bool isDocument,
}) =>
argParser.addOption(
argNameChangeRootName,
abbr: 'c',
valueHelp: 'new ${_resourceType(isDocument)} root name',
help: 'Change the root ${_resourceType(isDocument)} name.\n'
'The name of the ${_resourceType(isDocument)} is stored in the `\$name` '
'meta-data of your root json ${_resourceType(isDocument)} object. '
'You can change this name when sending the ${_resourceType(isDocument)} '
'to the firestore',
);