buildHelpText function

String buildHelpText({
  1. required String executableName,
  2. required String version,
})

Implementation

String buildHelpText({required String executableName, required String version}) {
  return '''
Rebrand CLI v$version

Usage:
  $executableName [project_path]
  $executableName --project <path> [--config <path>]

Options:
  -h, --help       Show usage information.
  -v, --version    Show the CLI version.
  -p, --project    Flutter project root to rebrand.
  -c, --config     Path to the JSON config file.

Examples:
  $executableName
  $executableName .
  $executableName --project ./example --config ./example/rebrand_config.json
''';
}