Updated API Documentation (markdown)
parent
069e2e9292
commit
8063fab924
|
|
@ -252,7 +252,19 @@ Resulting Value: baz2 (string)
|
|||
|
||||
***
|
||||
|
||||
#### get_option(name)
|
||||
The `get_option` method is used to retrieve the value of an option (either set by the user or the default) that the plugin has previously configured. The `name` argument should be the same value as the `name` argument of the original option.
|
||||
#### get_option(name, default=None)
|
||||
The `get_option` method is used to retrieve the value of an option (either set by the user or the default) that the plugin has previously configured. The `name` argument should be the same value as the `name` argument of the original option. In the event that an option was defined without a default value, the optional `default` argument can be set to a default value of your choice.
|
||||
|
||||
This method should only be used in the run() coroutine of a plugin.
|
||||
This method should only be used in the run() coroutine of a plugin.
|
||||
|
||||
***
|
||||
|
||||
#### get_global_option(name, default=None)
|
||||
The `get_global_option` method is used to retrieve the value of a global option (either set by the user or the default). The `name` argument should be the same value as the `name` argument of the global option. The optional `default` argument can be set to a default value of your choice.
|
||||
|
||||
This method can be used in the run() coroutine and the manual() method of a plugin.
|
||||
|
||||
***
|
||||
|
||||
#### get_global(name, default=None)
|
||||
The `get_global_option` method is an alias for the `get_global_option` method.
|
||||
Loading…
Reference in New Issue