mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Rusty Russell
parent
a08905c344
commit
42cce55b45
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user