mosquito / argclass

A wrapper around the standard argparse module that allows you to describe argument parsers declaratively
Apache License 2.0
12 stars 3 forks source link

Support kebab-case options in config files #4

Open dizballanze opened 2 years ago

dizballanze commented 2 years ago

It seems that currently you are only supporting direct mapping by attribute name. I think kebab-case is a common approach for .ini files

mosquito commented 2 years ago

Unfortunately, this is not so easy to do. The fact is that firstly, due to the fact that aliases can be transmitted, the description of this config does not become very obvious. Well, the main difficulty is that I would not like to have excess mapping for config fields and fields in parser attributes.