LockCommand constructor
LockCommand()
Implementation
LockCommand() {
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. Hand-authored copy '
'arrives a page at a time, and a namespace is how the source '
'already groups a page. A lock asserts a human approved the '
'value, so this asserts it for every key in the namespace — read '
'the count it reports back.',
valueHelp: 'name',
)
..addOption(
'locale',
abbr: 'l',
help:
'Act on one target locale. Default: every target locale that '
'carries the key.',
valueHelp: 'locale',
)
..addFlag(
'remove',
negatable: false,
help:
'Unlock instead of lock. Keeps the recorded source_hash so the '
'entry still reports staleness normally.',
);
}