Files
sdk/pkg/nnbd_migration/bin/migrate.dart
T
Devon Carew b782d5815f [pkg/nnbd_migration] add types to public API
Change-Id: Ie4a7bbe75dd8045b20361c3fa1e08784b990e951
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176142
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2020-12-15 01:34:29 +00:00

24 lines
757 B
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'package:args/src/arg_results.dart';
import 'package:nnbd_migration/migration_cli.dart';
void main(List<String> args) async {
var cli = MigrationCli(binaryName: 'nnbd_migration');
ArgResults argResults;
try {
try {
argResults = MigrationCli.createParser().parse(args);
} on FormatException catch (e) {
cli.handleArgParsingException(e);
}
await cli.decodeCommandLineArgs(argResults)?.run();
} on MigrationExit catch (migrationExit) {
exitCode = migrationExit.exitCode;
}
}