addOptionBaseHref method

void addOptionBaseHref()

Adds a base href option for web applications.

Overrides the href attribute of the <base> tag in web/index.html. No change is done to web/index.html file if this flag is not provided. The value has to start and end with a slash "/". For more information: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

Example:

argParser.addOptionBaseHref();

Implementation

void addOptionBaseHref() {
  addOption(
    'base-href',
    help:
        '''Overrides the href attribute of the <base> tag in web/index.html. No change is done to web/index.html file if this flag is not
provided. The value has to start and end with a slash "/". For more information:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base''',
  );
}