blob: bfc6db14f1a00d2f45c09e9cfb65f5d4c7ad4cca [file] [log] [blame]
// 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());
}
}