loam/cli.py
def _bash_comp_command(self, cmd, add_help=True):
        """Build a list of all options for a given command.

        Args:
            cmd (str): command name, set to None or '' for bare command.
            add_help (bool): add an help option.

        Returns:
            list of str: list of CLI options strings.
        """
        out = ['-h', '--help'] if add_help else []
        cmd_dict = self._opt_cmds[cmd] if cmd else self._opt_bare
        for opt, sct in cmd_dict:
            out.extend(_names(self._conf[sct], opt))
        return out
def _bash_comp_command(self, cmd, add_help=True):
        """Build a list of all options for a given command.

        Args:
            cmd (str): command name, set to None or '' for bare command.
            add_help (bool): add an help option.

        Returns:
            list of str: list of CLI options strings.
        """
        out = ['-h', '--help'] if add_help else []
        cmd_dict = self._opt_cmds[cmd] if cmd else self._opt_bare
        for opt, sct in cmd_dict:
            out.extend(_names(self._conf[sct], opt))
        return out
Build a list of all options for a given command.

        Args:
            cmd (str): command name, set to None or '' for bare command.
            add_help (bool): add an help option.

        Returns:
            list of str: list of CLI options strings.