Commit ab02591b authored by Janis Streib's avatar Janis Streib

UPD: correct use of token parameter

parent 3786d1bd
......@@ -19,7 +19,9 @@ class MyEncoder(JSONEncoder):
@click.group()
def cli():
@click.option('--token', envvar='NETDB_AUTH')
def cli(token):
loader.auth = token
loader.load()
......@@ -28,8 +30,6 @@ def cli():
def python(strict):
keyword_replacements = {'class': 'cls'}
def gen_def(p, scope):
if p.__dict__[scope].data_default is not None:
return f'={quote_def(p, p.__dict__[scope])}'
......@@ -37,7 +37,6 @@ def python(strict):
return '=None'
return ''
def replace_keywords(k):
for t, s in keyword_replacements.items():
k = k.replace(t, s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment