Files
sdk/utils/testrunner/http_server_runner.dart
T
2013-10-30 15:58:52 +00:00

22 lines
657 B
Dart

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library http_server_runner;
import 'dart:io';
import 'http_server.dart';
main(List<String> arguments) {
var optionsParser = getOptionParser();
try {
var argResults = optionsParser.parse(arguments);
var server = new HttpTestServer(
int.parse(argResults['port']),
argResults['root']);
} catch (e) {
print(e);
print('Usage: http_server_runner.dart <options>');
print(optionsParser.getUsage());
}
}