plugins: add 'flag' type for plugin options

Updates the plugin docs to include more detailed info about how options
work.

Changelog-Added: Plugins: 'flag'-type option now available.
This commit is contained in:
lisa neigut
2020-03-16 20:34:35 -05:00
committed by Rusty Russell
parent a08905c344
commit 42cce55b45
7 changed files with 111 additions and 7 deletions

View File

@@ -17,4 +17,5 @@ def init(configuration, options, plugin):
plugin.add_option('str_opt', 'i am a string', 'an example string option')
plugin.add_option('int_opt', 7, 'an example int type option', opt_type='int')
plugin.add_option('bool_opt', True, 'an example bool type option', opt_type='bool')
plugin.add_flag_option('flag_opt', 'an example flag type option')
plugin.run()