diff options
Diffstat (limited to 'docs/features/plugins.rst')
-rw-r--r-- | docs/features/plugins.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/features/plugins.rst b/docs/features/plugins.rst index ecd3a32d..13a3910b 100644 --- a/docs/features/plugins.rst +++ b/docs/features/plugins.rst @@ -81,7 +81,7 @@ example:: super().__init__(*args, **kwargs) # code placed here runs after cmd2.Cmd initializes self.mysetting = 'somevalue' - self.add_settable(cmd2.Settable('mysetting', str, 'short help message for mysetting')) + self.add_settable(cmd2.Settable('mysetting', str, 'short help message for mysetting', self)) You can hide settings from the user by calling :meth:`~cmd2.Cmd.remove_settable`. See :ref:`features/settings:Settings` for |