@@ -145,7 +145,7 @@ class DartdevRunner<int> extends CommandRunner {
145145 final bool verbose = args.contains ('-v' ) || args.contains ('--verbose' );
146146
147147 argParser.addFlag ('verbose' ,
148- abbr: 'v' , negatable: false , help: 'Show verbose output.' );
148+ abbr: 'v' , negatable: false , help: 'Show additional command output.' );
149149 argParser.addFlag ('version' ,
150150 negatable: false , help: 'Print the Dart SDK version.' );
151151 argParser.addFlag ('enable-analytics' ,
@@ -155,6 +155,9 @@ class DartdevRunner<int> extends CommandRunner {
155155
156156 addExperimentalFlags (argParser, verbose);
157157
158+ argParser.addFlag ('diagnostics' ,
159+ negatable: false , help: 'Show tool diagnostic output.' , hide: ! verbose);
160+
158161 // A hidden flag to disable analytics on this run, this constructor can be
159162 // called with this flag, but should be removed before run() is called as
160163 // the flag has not been added to all sub-commands.
@@ -163,14 +166,14 @@ class DartdevRunner<int> extends CommandRunner {
163166 help: 'Disable anonymous analytics for this `dart *` run' ,
164167 hide: true );
165168
166- addCommand (AnalyzeCommand (verbose : verbose ));
169+ addCommand (AnalyzeCommand ());
167170 addCommand (CreateCommand (verbose: verbose));
168- addCommand (CompileCommand (verbose : verbose ));
169- addCommand (FormatCommand (verbose : verbose ));
171+ addCommand (CompileCommand ());
172+ addCommand (FormatCommand ());
170173 addCommand (MigrateCommand (verbose: verbose));
171- addCommand (PubCommand (verbose : verbose ));
172- addCommand (RunCommand (verbose : verbose ));
173- addCommand (TestCommand (verbose : verbose ));
174+ addCommand (PubCommand ());
175+ addCommand (RunCommand ());
176+ addCommand (TestCommand ());
174177 }
175178
176179 @override
@@ -192,13 +195,16 @@ class DartdevRunner<int> extends CommandRunner {
192195 io.exit (254 );
193196 }
194197 }
195- isVerbose = topLevelResults['verbose' ];
198+
199+ isDiagnostics = topLevelResults['diagnostics' ];
196200
197201 final Ansi ansi = Ansi (Ansi .terminalSupportsAnsi);
198- log = isVerbose ? Logger .verbose (ansi: ansi) : Logger .standard (ansi: ansi);
202+ log = isDiagnostics
203+ ? Logger .verbose (ansi: ansi)
204+ : Logger .standard (ansi: ansi);
199205
200- if (wereExperimentsSpecified ( topLevelResults)) {
201- List <String > experimentIds = specifiedExperiments ( topLevelResults) ;
206+ if (topLevelResults. wasParsed (experimentFlagName )) {
207+ List <String > experimentIds = topLevelResults[experimentFlagName] ;
202208 for (ExperimentalFeature feature in experimentalFeatures) {
203209 // We allow default true flags, but complain when they are passed in.
204210 if (feature.isEnabledByDefault &&
0 commit comments