aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/script_arguments.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple/script_arguments.py')
-rw-r--r--examples/simple/script_arguments.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/simple/script_arguments.py b/examples/simple/script_arguments.py
deleted file mode 100644
index 84292eb9..00000000
--- a/examples/simple/script_arguments.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import argparse
-
-
-class Replacer:
- def __init__(self, src, dst):
- self.src, self.dst = src, dst
-
- def response(self, flow):
- flow.response.replace(self.src, self.dst)
-
-
-def load(l):
- parser = argparse.ArgumentParser()
- parser.add_argument("src", type=str)
- parser.add_argument("dst", type=str)
- args = parser.parse_args()
- l.boot_into(Replacer(args.src, args.dst))