Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: utils/testrunner/http_server_runner.dart

Issue 46673003: Remove uses of Options from utils directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/template/tool.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library http_server_runner; 5 library http_server_runner;
6 import 'dart:io'; 6 import 'dart:io';
7 import 'http_server.dart'; 7 import 'http_server.dart';
8 8
9 main() { 9 main(List<String> arguments) {
10 var optionsParser = getOptionParser(); 10 var optionsParser = getOptionParser();
11 try { 11 try {
12 var argResults = optionsParser.parse(new Options().arguments); 12 var argResults = optionsParser.parse(arguments);
13 var server = new HttpTestServer( 13 var server = new HttpTestServer(
14 int.parse(argResults['port']), 14 int.parse(argResults['port']),
15 argResults['root']); 15 argResults['root']);
16 } catch (e) { 16 } catch (e) {
17 print(e); 17 print(e);
18 print('Usage: http_server_runner.dart <options>'); 18 print('Usage: http_server_runner.dart <options>');
19 print(optionsParser.getUsage()); 19 print(optionsParser.getUsage());
20 } 20 }
21 } 21 }
OLDNEW
« no previous file with comments | « utils/template/tool.dart ('k') | utils/testrunner/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698