argParser top-level property
ArgParser
argParser
final
Implementation
final argParser = ArgParser()
..addFlag(
_helpKey,
abbr: 'h',
help: 'Show help message.',
defaultsTo: false,
)
..addFlag(
_printParsedFilesLogsKey,
abbr: 'f',
help: 'Print after every parsed file',
defaultsTo: false,
)
..addFlag(
_printProjectClassesKey,
abbr: 'c',
help: 'Print all project classes',
defaultsTo: false,
)
..addFlag(
_printClassErrorsKey,
abbr: 'e',
help: 'Print all architecture errors from project classes',
defaultsTo: true,
)
..addOption(
_inputPathKey,
help: 'Path to directory with pubspec.yaml and lib directory',
valueHelp: 'DIRECTORY',
defaultsTo: '.',
)
..addOption(
_architectureFileNameKey,
help: "Architecure configuration yaml file's name",
valueHelp: 'FILE',
defaultsTo: 'architecture.yaml',
);