Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
strk opened this issue Dec 15, 2020 · 1 comment · Fixed by #14005
Closed

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

strk opened this issue Dec 15, 2020 · 1 comment · Fixed by #14005

Comments

@strk
Copy link
Member

strk commented Dec 15, 2020

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

@strk
Copy link
Member Author

strk commented Dec 15, 2020

Note this is as of current master (980b0df)

zeripath added a commit to zeripath/gitea that referenced this issue Dec 15, 2020
This pr fixes the label descriptor of `gitea admin delete user`
but also adds a `--username` option.

Fix go-gitea#13995

Signed-off-by: Andrew Thornton <[email protected]>
techknowlogick added a commit that referenced this issue Dec 17, 2020
* fix label of --id in admin delete user

This pr fixes the label descriptor of `gitea admin delete user`
but also adds a `--username` option.

Fix #13995

Signed-off-by: Andrew Thornton <[email protected]>

* fix-spacing

Signed-off-by: Andrew Thornton <[email protected]>

* Add delete email support

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: 6543 <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant