handleGlobalFlags method
void
handleGlobalFlags(
- ArgResults results
Handles the global flags based on the parsed results.
Implementation
void handleGlobalFlags(ArgResults results) {
if (results['help'] == true) {
print(
'${Colors.colorize('Usage', Colors.cyan)}: dart run bin/next_feature.dart command [options]',
);
print(
'Use ${Colors.colorize('--help', Colors.grey)} with a specific command to see its options.',
);
}
if (results['version'] == true) {
print(
'\n\u{1F4C4} Current version of Next Feature CLI is 1.0.0',
); // Replace with actual version
}
}