parser property
ArgParser
get
parser
Implementation
static ArgParser get parser {
if (BToolOptions._parser != null) {
return BToolOptions._parser!;
}
final _parser = ArgParser(allowTrailingOptions: true);
_parser.addFlag('help', abbr: 'h', negatable: false, help: 'Show help');
_parser.addFlag('version',
abbr: 'v', negatable: false, help: 'Show version');
_parser.addOption('working-dir',
abbr: 'd', help: 'Change working directory of script');
_parser.addFlag('verbose',
abbr: 'V', negatable: false, help: 'Display debug output');
BToolOptions._parser = _parser;
return _parser;
}