def __init__(self, cmd_packages=None, *args, **kwargs):
super(BaseCommand, self).__init__(*args, **kwargs)<EOL>if not cmd_packages:<EOL><INDENT>cmd_packages = _SAM_CLI_COMMAND_PACKAGES<EOL><DEDENT>self._commands = {}<EOL>self._commands = BaseCommand._set_commands(cmd_packages)<EOL>
Initializes the class, optionally with a list of available commands

:param cmd_packages: List of Python packages names of CLI commands
:param args: Other Arguments passed to super class
:param kwargs: Other Arguments passed to super class