[flutter_tools] support trailing args (#86431)

This commit is contained in:
Jonah Williams
2021-07-14 15:51:10 -07:00
committed by GitHub
parent 4d96a3fd50
commit b549e829e8
4 changed files with 17 additions and 17 deletions

View File

@@ -249,9 +249,8 @@ class PackagesForwardCommand extends FlutterCommand {
}
class PackagesPassthroughCommand extends FlutterCommand {
PackagesPassthroughCommand() {
requiresPubspecYaml();
}
@override
ArgParser argParser = ArgParser.allowAnything();
@override
String get name => 'pub';

View File

@@ -159,7 +159,6 @@ abstract class FlutterCommand extends Command<void> {
@override
ArgParser get argParser => _argParser;
final ArgParser _argParser = ArgParser(
allowTrailingOptions: false,
usageLineLength: globals.outputPreferences.wrapText ? globals.outputPreferences.wrapColumn : null,
);