docs: def hotp(ctx, slot, key, digits, counter, no_enter, force):
      """
      Program an HMAC-SHA1 OATH-HOTP credential.
  
      """
      controller = ctx.obj['controller']
      if not key:
          while True:
              key = click.prompt('Enter a secret key (base32)', err=True)
              try:
                  key = parse_b32_key(key)
                  break
              except Exception as e:
                  click.echo(e)
  
      force or click.confirm(
          'Program a HOTP credential in slot {}?'.format(slot), abort=True,
          err=True)
      try:
          controller.program_hotp(
              slot, key, counter, int(digits) == 8, not no_enter)
      except YkpersError as e:
          _failed_to_write_msg(ctx, e)