mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 10:26:23 +00:00
22 lines
267 B
Python
22 lines
267 B
Python
import argparse
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('--var', type=int)
|
|
|
|
var = 0
|
|
|
|
|
|
def start(ctx, argv):
|
|
global var
|
|
var = parser.parse_args(argv[1:]).var
|
|
|
|
|
|
def here(ctx):
|
|
global var
|
|
var += 1
|
|
return var
|
|
|
|
|
|
def errargs():
|
|
pass
|