aboutsummaryrefslogtreecommitdiffstats
path: root/test/scripts/a.py
blob: 31cdaf0cfffe9885ae198355b762b595d58cf889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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