File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ - Always pass the argument ` --fail-on-severe ` to the ` build ` command.
2+
13## 0.2.1
24
35- Exit with an error if unsupported arguments are passed to ` build ` command.
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ class BuildCommand extends CommandBase {
2626 '"${argResults .rest .join (' ' )}".' ,
2727 argParser.usage);
2828 }
29- return runCore ('build' );
29+ return runCore ('build' , extraArgs : [ '--fail-on-severe' ] );
3030 }
3131}
Original file line number Diff line number Diff line change @@ -68,14 +68,16 @@ abstract class CommandBase extends Command<int> {
6868 return arguments;
6969 }
7070
71- Future <int > runCore (String command) async {
71+ Future <int > runCore (String command, { List < String > extraArgs} ) async {
7272 await checkPubspecLock (
7373 requireBuildWebCompilers:
7474 argResults[_requireBuildWebCompilers] as bool );
7575
7676 var buildRunnerScript = await _buildRunnerScript ();
7777
78- final arguments = [command]..addAll (getArgs ());
78+ final arguments = [command]
79+ ..addAll (extraArgs ?? const [])
80+ ..addAll (getArgs ());
7981
8082 var exitCode = 0 ;
8183
You can’t perform that action at this time.
0 commit comments