buildRootParser function
ArgParser
buildRootParser()
Builds the root ArgParser from the command registry.
Implementation
ArgParser buildRootParser() {
final parser = ArgParser()
..addFlag(
'help',
abbr: 'h',
negatable: false,
help: 'Show usage information.',
);
for (final command in agentMemoryCommands) {
parser.addCommand(command.name, _buildParser(command));
}
return parser;
}