mitmproxy/test/scripts/a.py

18 lines
252 B
Python
Raw Normal View History

import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--var')
var = 0
def __init__(ctx, argv):
global var
var = parser.parse_args(argv).var
def here(ctx):
global var
var += 1
return var
def errargs():
pass