This is not tested, but maybe it'll work :) def complete(self, text, state): if text.startswith('config): return self.config.complete(text, state) return Cmd.complete(self, text, state)