def autocomplete(self, autocomplete=False, words=None, cword=None):
        autocomplete = autocomplete or 'AUTO_COMPLETE' in os.environ

        # Don't complete if user hasn't sourced bash_completion file.
        if not autocomplete:
            return

        words = words or os.environ['COMP_WORDS'].split()[1:]
        cword = cword or int(os.environ['COMP_CWORD'])

        try:
            curr = words[cword - 1]
        except IndexError:
            curr = ''

        subcommands = get_commands()

        if cword == 1:  # if completing the command name
            print(' '.join(sorted([x for x in subcommands
                                   if x.startswith(curr)])))
        sys.exit(1)
This classmethod returns a new instance of the subclass populated
dataset/ETHPy150Open circus-tent/circus/circus/circusctl.py/CircusCtl.autocomplete--crossover with--dataset/ETHPy150Open memphis-iis/GLUDB/gludb/data.py/Storable.from_data