aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2013-06-13 16:04:04 +0200
committerMaximilian Hils <git@maximilianhils.com>2013-06-13 16:09:38 +0200
commit2b4af8d4756bc4eef613ec2cdf81a97d3952150b (patch)
tree514425c6f9bfee6acdef2d74ecf49ccff2ed8b2d /examples
parentd3beaa738223947390bc66cdb649bf3cbaba6c28 (diff)
downloadmitmproxy-2b4af8d4756bc4eef613ec2cdf81a97d3952150b.tar.gz
mitmproxy-2b4af8d4756bc4eef613ec2cdf81a97d3952150b.tar.bz2
mitmproxy-2b4af8d4756bc4eef613ec2cdf81a97d3952150b.zip
add support for multiple scripts and script arguments. refs #76
Diffstat (limited to 'examples')
-rw-r--r--examples/stub.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/stub.py b/examples/stub.py
index 31411145..42b2935a 100644
--- a/examples/stub.py
+++ b/examples/stub.py
@@ -1,8 +1,7 @@
"""
This is a script stub, with definitions for all events.
"""
-
-def start(ctx):
+def start(ctx, argv):
"""
Called once on script startup, before any other events.
"""