addOptionTarget method

void addOptionTarget()

Adds a target file option for specifying the main entry-point file.

The main entry-point file of the application, as run on the device. If the "--target" option is omitted, but a file name is provided on the command line, then that is used instead.

Defaults to lib/main.dart.

Example:

argParser.addOptionTarget();

Implementation

void addOptionTarget() {
  addOption(
    'target',
    abbr: 't',
    help:
        '''The main entry-point file of the application, as run on the device.
If the "--target" option is omitted, but a file name is provided on the command line, then that is
used instead.''',
    defaultsTo: 'lib/main.dart',
  );
}