Fix: CLI docs
Change-Id: Iea3847e07e7f919a0fdcb66eab76b12be155d101
This commit is contained in:
parent
565cfaf344
commit
7d0c582065
@ -5,7 +5,20 @@ CLI
|
||||
.. automodule:: timmy.cli
|
||||
.. argparse::
|
||||
:module: timmy.cli
|
||||
:func: parse_args
|
||||
:func: parser_init
|
||||
:prog: timmy
|
||||
|
||||
Fuel module parameters
|
||||
|
||||
.. argparse::
|
||||
:module: timmy.modules.fuel
|
||||
:func: prepare_args
|
||||
:prog: timmy
|
||||
|
||||
Local module parameters
|
||||
|
||||
.. argparse::
|
||||
:module: timmy.modules.local
|
||||
:func: prepare_args
|
||||
:prog: timmy
|
||||
|
||||
|
||||
|
@ -64,6 +64,13 @@ def add_args(parser):
|
||||
return parser
|
||||
|
||||
|
||||
def prepare_args():
|
||||
import argparse
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = add_args(parser)
|
||||
return parser
|
||||
|
||||
|
||||
def check_args(args, conf):
|
||||
if args.fuel_ip:
|
||||
conf['fuel_ip'] = args.fuel_ip
|
||||
|
@ -26,6 +26,13 @@ def add_args(parser):
|
||||
return parser
|
||||
|
||||
|
||||
def prepare_args():
|
||||
import argparse
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = add_args(parser)
|
||||
return parser
|
||||
|
||||
|
||||
def check_args(args, conf):
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user