From faaf79b695a4ee91634d166dd050d2a28bb65632 Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Mon, 10 Aug 2020 12:27:48 -0400 Subject: Updated with missing doc-string for new CommandSet parameters for cmd2.Cmd's constructor --- cmd2/cmd2.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmd2') diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 39feac68..621228db 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -179,6 +179,14 @@ class Cmd(cmd.Cmd): :param shortcuts: dictionary containing shortcuts for commands. If not supplied, then defaults to constants.DEFAULT_SHORTCUTS. If you do not want any shortcuts, pass an empty dictionary. + :param command_sets: Provide CommandSet instances to load during cmd2 initialization. + This allows CommandSets with custom constructor parameters to be + loaded. This also allows the a set of CommandSets to be provided + when `auto_load_commands` is set to False + :param auto_load_commands: If True, cmd2 will check for all subclasses of `CommandSet` + that are currently loaded by Python and automatically + instantiate and register all commands. If False, CommandSets + must be manually installed with `install_command_set`. """ # If use_ipython is False, make sure the ipy command isn't available in this instance if not use_ipython: -- cgit v1.2.1