reuse common code in DartCommandLineRunnerParameters