AcceptCommand constructor
AcceptCommand()
Implementation
AcceptCommand() {
argParser
..addOption(
'root',
help:
'Project root (the directory containing dialect/). '
'Defaults to the current directory.',
valueHelp: 'path',
)
..addOption(
'namespace',
abbr: 'n',
help:
'Act on every source key in this namespace, instead of (or as '
'well as) the keys named on the command line.',
valueHelp: 'name',
)
..addOption(
'locale',
abbr: 'l',
help:
'Act on one target locale. Default: every target locale that '
'carries the key.',
valueHelp: 'locale',
)
..addFlag(
'all',
negatable: false,
help:
'Act on every source key instead of naming them: stamp each '
'translation that exists but carries no source_hash or a stale '
'one. This is the one-command path for a writer outside Dialect '
'(an import rail, a script) that writes the translation ARB '
'itself and should not compute hashes. Keys with no translation '
'yet are left alone. Like naming the keys, it asserts the '
'translations are current for the source as it stands, so run it '
'on values you have reviewed.',
);
}