addOptionBuildName method

void addOptionBuildName()

Adds a build name option for versioning.

A "x.y.z" string used as the version number shown to users. For each new version of your app, you will provide a version number to differentiate it from previous versions. On Android it is used as "versionName". On Xcode builds it is used as "CFBundleShortVersionString".

Example:

argParser.addOptionBuildName();

Implementation

void addOptionBuildName() {
  addOption(
    'build-name',
    help: '''A "x.y.z" string used as the version number shown to users.
For each new version of your app, you will provide a version number to differentiate it from previous versions.
On Android it is used as "versionName".
On Xcode builds it is used as "CFBundleShortVersionString".''',
  );
}