Skip to content

Set ArgParse "choices" based on loaded mods at a given ref

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

When a cli option selects a plugin, this allows the ArgParse to validate the selected plugin based on modules loaded to the hub at a given ref.

This was manually tested by adding the new parameter to pop-config's "log-plugin".

Previous --help output:

  --log-plugin LOG_PLUGIN
                        The logging plugin to use

New --help output:

  --log-plugin {init,queue,event,async,async_timed_rolling,basic,datagram,null,rotating,socket,timed_rotating}
                        The logging plugin to use
Edited by Akmod

Merge request reports