getslash / slash

The Slash testing infrastructure
https://getslash.github.io/slash
Other
75 stars 38 forks source link

Usage of PluginInterface's configure_argument_parser and configure_from_parsed_args #1005

Open ayalash opened 4 years ago

ayalash commented 4 years ago

In slash's documentation, there is an example for the usage of PluginInterface configure_argument_parser and configure_from_parsed_args methods for allow passing command-line arguments for a plugin: https://slash.readthedocs.io/en/develop/customizing_slash.html#complete-example

IMO it will be better to use CmdLine overriding for this usage. In addition, I tried to think when should one use the methods (instead of the overriding) and I couldn't find an example.

ayalash commented 4 years ago

@vmalloc What do you think?

vmalloc commented 4 years ago

I'm ok with changing it to Cmdline only