aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-12-17 07:57:32 +0000
committerGitHub <noreply@github.com>2020-12-17 02:57:32 -0500
commit5e09de174c69c77babf7366cbbb17d59cb3102f0 (patch)
treeb25dd01ea6f804c6f5f6319a32ccaaa1ff2e6dc3 /docs/content
parentc57e1f2653904fa6eb428d87d64918453533557c (diff)
downloadgitea-5e09de174c69c77babf7366cbbb17d59cb3102f0.tar.gz
gitea-5e09de174c69c77babf7366cbbb17d59cb3102f0.zip
fix label of --id in admin delete user (#14005)
* 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 <art27@cantab.net> * fix-spacing Signed-off-by: Andrew Thornton <art27@cantab.net> * Add delete email support Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/doc/usage/command-line.en-us.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/content/doc/usage/command-line.en-us.md b/docs/content/doc/usage/command-line.en-us.md
index adaf3ea0d5..a09d5dde73 100644
--- a/docs/content/doc/usage/command-line.en-us.md
+++ b/docs/content/doc/usage/command-line.en-us.md
@@ -69,7 +69,10 @@ Admin operations:
- `gitea admin user list`
- `delete`:
- Options:
- - `--id`: ID of user to be deleted. Required.
+ - `--email`: Email of the user to be deleted.
+ - `--username`: Username of user to be deleted.
+ - `--id`: ID of user to be deleted.
+ - One of `--id`, `--username` or `--email` is required. If more than one is provided then all have to match.
- Examples:
- `gitea admin user delete --id 1`
- `create`: - Options: - `--name value`: Username. Required. As of gitea 1.9.0, use the `--username` flag instead. - `--username value`: Username. Required. New in gitea 1.9.0. - `--password value`: Password. Required. - `--email value`: Email. Required. - `--admin`: If provided, this makes the user an admin. Optional. - `--access-token`: If provided, an access token will be created for the user. Optional. (default: false). - `--must-change-password`: If provided, the created user will be required to choose a newer password after