Skip to content

Commit 9f8776f

Browse files
committed
Migration: split out a MigrationCliRunner API from MigrationCli.
This API can be used by tools that wish to perform migration but want to provide their own command-line argument parsing. Change-Id: Ic54e993139c803ded5ac39229ae84980db12184e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151080 Reviewed-by: Mike Fairhurst <[email protected]>
1 parent a7c9320 commit 9f8776f

File tree

3 files changed

+348
-304
lines changed

3 files changed

+348
-304
lines changed

pkg/nnbd_migration/bin/migrate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ main(List<String> args) async {
1616
} on FormatException catch (e) {
1717
cli.handleArgParsingException(e);
1818
}
19-
await cli.run(argResults);
19+
await cli.decodeCommandLineArgs(argResults)?.run();
2020
} on MigrationExit catch (migrationExit) {
2121
exitCode = migrationExit.exitCode;
2222
}

0 commit comments

Comments
 (0)