Skip to content

fixed a bug that resulted from sorting options

Akmod requested to merge Akm0d/pop-config:master into master

If long options (starting with "--") were specified in a conf.py and they came alphebetically before the first named arg, the destination would become the argument that was alphebetically first instead of the name of the key in raw_config.

I.E. {"directory": {"options": ["--dir"]}} would end up on hub.OPT.app.dir instead of on hub.OPT.app.directory.

To fix this, a list was used from the very start when collecting args instead of a set. Uniqueness is verified before appending to the list.

Merge request reports