void main()

in packages/web_drivers/lib/web_driver_installer.dart [22:42]


void main(List<String> args) async {
  // TODO(nurhan): Add more browsers' drivers. Control with command line args.
  try {
    // For now add chromedriver if no argument exists. This is not to break
    // exisiting tests.
    // TODO(nurhan): Fix smoke test in flutter to pass chromedriver as an arg.
    if (args.isEmpty) {
      await runner.run(<String>['chromedriver']);
    } else {
      await runner.run(args);
    }
  } on UsageException catch (e) {
    print(e);
    io.exit(64); // Exit code 64 indicates a usage error.
  } catch (e) {
    rethrow;
  }

  // Sometimes the Dart VM refuses to quit.
  io.exit(io.exitCode);
}