mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
update test script
This commit is contained in:
parent
2b4af8d475
commit
b4f6f09c83
@ -1,12 +1,12 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--var')
|
parser.add_argument('--var', type=int)
|
||||||
|
|
||||||
var = 0
|
var = 0
|
||||||
def __init__(ctx, argv):
|
def start(ctx, argv):
|
||||||
global var
|
global var
|
||||||
var = parser.parse_args(argv).var
|
var = parser.parse_args(argv[1:]).var
|
||||||
|
|
||||||
def here(ctx):
|
def here(ctx):
|
||||||
global var
|
global var
|
||||||
|
Loading…
Reference in New Issue
Block a user