help method

void help()

Prints CLI usage information and exits.

Keep this aligned with the actual CLI flags in bin/feature_gen_cli.dart.

Implementation

void help() {
  final helpInfo = '''
Manage your Flutter feature modules.

Common commands:

dart tool/feature_gen_cli.dart <feature_name> <schema.json>
  Generate a new feature module using the provided feature name and schema definition.

Required parameters:

<feature_name>:
  Name of the feature to generate.
  Must be lowercase and snake_case

<schema.json>:
  Path to the JSON schema file.

Global options:
-h, --help        Show this help message.
    --version:     Print the current version.

Example:
dart tool/feature_gen_cli.dart example schema.json

Run 'dart tool/feature_gen_cli.dart -h' for more information''';

  stdout.writeln(helpInfo);
  exit(0);
}