kalekundert / stepwise

Modular, command-line scientific protocols
GNU General Public License v3.0
3 stars 0 forks source link

Parse config schema from usage text #49

Open kalekundert opened 3 years ago

kalekundert commented 3 years ago

Basically like docopt for the config file. The goal would not be to do any parsing though, just to make sure that no unexpected (i.e. potentially misspelled) values are present.

kalekundert commented 3 years ago

I would need two parsers, one for StepwiseConfig and one for PresetConfig, although the two would be similar and might be able to share some code. All settings would be regarded as optional, so the schema would only check to make sure that the actual file(s) don't contain any unexpected (e.g. potentially mistyped) keys.