forked from firka/flutter
[flutter_tools] support trailing args (#86431)
This commit is contained in:
@@ -249,9 +249,8 @@ class PackagesForwardCommand extends FlutterCommand {
|
||||
}
|
||||
|
||||
class PackagesPassthroughCommand extends FlutterCommand {
|
||||
PackagesPassthroughCommand() {
|
||||
requiresPubspecYaml();
|
||||
}
|
||||
@override
|
||||
ArgParser argParser = ArgParser.allowAnything();
|
||||
|
||||
@override
|
||||
String get name => 'pub';
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user