Skip to content

gitea admin user delete --help gives misleading documentation #13995

@strk

Description

@strk

This is the current --help output for gitea admin user delete:

NAME:
   Gitea admin user delete - Delete specific user

USAGE:
   Gitea admin user delete [command options] [arguments...]

OPTIONS:
   --id value                     ID of authentication source (default: 0)
   --custom-path value, -C value  Custom path file path (default: "/home/git/custom")
   --config value, -c value       Custom configuration file path (default: "/home/git/custom/conf/app.ini")
   --version, -v                  print the version
   --work-path value, -w value    Set the gitea working path (default: "/home/git")

BUT the --id switch does NOT specify an authentication source. Instead it is used as the user identifier (not easy to figure out, btw). I'd think it's a bug in implementation rather than documentation, and that the implmeentation is missing a --username switch to reference users by username instead of id

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions