mirror of https://github.com/tLDP/python-tldp
inspect/call the argparse method for each doctype
This commit is contained in:
parent
81375b84c5
commit
b86f92f742
|
@ -51,10 +51,10 @@ def collectconfiguration(tag, argv):
|
|||
|
||||
# -- collect up the distributed configuration fragments
|
||||
#
|
||||
for module in tldp.typeguesser.knowndoctypemodules:
|
||||
config_fragment = getattr(module, 'config_fragment', None)
|
||||
if config_fragment:
|
||||
config_fragment(ap)
|
||||
for cls in tldp.typeguesser.knowndoctypes:
|
||||
argparse_method = getattr(cls, 'argparse', None)
|
||||
if argparse_method:
|
||||
argparse_method(ap)
|
||||
|
||||
cc = CascadingConfig(tag, ap, argv)
|
||||
config, args = cc.parse()
|
||||
|
|
Loading…
Reference in New Issue