use rest args for specifying test targets (flutter/engine#13088)

This commit is contained in:
Yegor
2019-10-11 13:44:55 -07:00
committed by GitHub
parent 16e74ede52
commit 20556a05cb

View File

@@ -22,11 +22,6 @@ import 'utils.dart';
class TestCommand extends Command<bool> {
TestCommand() {
argParser
..addMultiOption(
'target',
abbr: 't',
help: 'The path to the target to run. When omitted, runs all targets.',
)
..addFlag(
'debug',
help: 'Pauses the browser before running a test, giving you an '
@@ -75,7 +70,7 @@ class TestCommand extends Command<bool> {
bool get isDebug => argResults['debug'];
/// Paths to targets to run, e.g. a single test.
List<String> get targets => argResults['target'];
List<String> get targets => argResults.rest;
/// See [ChromeInstallerCommand.chromeVersion].
String get chromeVersion => argResults['chrome-version'];