#!/usr/bin/env php parseStandardArguments(); $args->parse( array( array( 'name' => 'repository', 'wildcard' => true, ), )); $repo = $args->getArg('repository'); if (count($repo) !== 1) { throw new Exception("Specify exactly one working copy!"); } $repo = head($repo); $daemon = new ArcanistHgProxyServer($repo); $daemon->start();