addWorkspaceOptions method
void
addWorkspaceOptions()
inherited
Implementation
void addWorkspaceOptions() {
argParser
..addOption(
'workspace',
help:
'Enable the file/repository tools (apollovm.fs.*, search.*, code.*, '
'git.*) rooted at this directory. Omit to stay inline-source-only.',
valueHelp: 'dir',
)
..addFlag(
'allow-write',
help:
'Permit mutating filesystem tools (fs.write/edit/mkdir/move/delete).',
negatable: false,
)
..addFlag(
'allow-git-write',
help: 'Permit mutating git tools (git.add/commit/checkout/restore).',
negatable: false,
)
..addFlag(
'require-line-match',
help: 'Require every fs.edit to pin its expected line via `atLine`.',
negatable: false,
)
..addFlag(
'null-safety',
help:
'Default the tools\' `nullSafety` argument to true: loading tools\n'
'reject source with null-safety errors, and the parse-based tools\n'
'report the findings. A per-call argument still overrides it.',
negatable: false,
);
}