code: def get_command(self, ctx, cmd_name):
          
          rv = click.Group.get_command(self, ctx, cmd_name)
          if rv is not None:
              return rv
          matches = [x for x in self.list_commands(ctx)
                     if x.startswith(cmd_name)]
          if not matches:
              return None
          elif len(matches) == 1:
              return click.Group.get_command(self, ctx, matches[0])
          ctx.fail('Command ambiguous, could be: %s' %
                   ', '.join(sorted(matches)))
docs: Allow for partial commands.