getOptionBaseHref method

String getOptionBaseHref()

Gets the base href option formatted for command-line usage.

Returns:

  • '--base-href=value' if the option is provided
  • Empty string if the option is not provided

Example:

final baseHrefFlag = argResults.getOptionBaseHref();
// Returns '--base-href=/my-app/' or ''

Implementation

String getOptionBaseHref() =>
    this?['base-href'] != null ? '--base-href=${this!['base-href']}' : '';