Download path, version flags for both tools.

This commit is contained in:
Aldo Cortesi 2013-05-15 18:56:05 +12:00
parent c65ab6961d
commit 9e7f08acea
4 changed files with 4 additions and 2 deletions

View File

@ -56,7 +56,7 @@
<h2>source</h2>
<ul>
<li>Current release: <a href="">pathod 0.9</a></li>
<li>Current release: <a href="http://mitmproxy.org/download/pathod-0.9.tar.gz">pathod 0.9</a></li>
<li>GitHub: <a href="http://github.com/cortesi/pathod">github.com/cortesi/pathod</a></li>
</li>

View File

@ -56,7 +56,7 @@
<hr>
<footer>
<span>&copy; Aldo Cortesi 2012</span>
<span class="pull-right">[served by pathod]</span>
<span class="pull-right">[served with pathod]</span>
</footer>
</div>
</body>

1
pathoc
View File

@ -17,6 +17,7 @@ if __name__ == "__main__":
sys.exit(0)
parser = argparse.ArgumentParser(description='A perverse HTTP client.', parents=[preparser])
parser.add_argument('--version', action='version', version="pathoc " + version.VERSION)
parser.add_argument(
"-c", dest="connect_to", type=str, default=False,
metavar = "HOST:PORT",

1
pathod
View File

@ -108,6 +108,7 @@ def main(parser, args):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='A pathological HTTP/S daemon.')
parser.add_argument('--version', action='version', version="pathod " + version.VERSION)
parser.add_argument("-p", dest='port', default=9999, type=int, help='Port. Specify 0 to pick an arbitrary empty port.')
parser.add_argument("-l", dest='address', default="127.0.0.1", type=str, help='Listening address.')
parser.add_argument(