Add username flag in create-user command (#6534)

* Add username flag in create-user command

* Fix the error message

* Change name to username on flag of create-user command

* Include create-user flags of both versions

* delete deprecated example of create-user command
This commit is contained in:
ngourdon
2019-04-09 17:21:55 +02:00
committed by techknowlogick
parent 696f7ab755
commit 9d6de48e3e

View File

@@ -51,7 +51,8 @@ Admin operations:
- Commands: - Commands:
- `create-user` - `create-user`
- Options: - Options:
- `--name value`: Username. Required. - `--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. - `--password value`: Password. Required.
- `--email value`: Email. Required. - `--email value`: Email. Required.
- `--admin`: If provided, this makes the user an admin. Optional. - `--admin`: If provided, this makes the user an admin. Optional.
@@ -63,7 +64,7 @@ Admin operations:
- `--random-password-length`: If provided, it will be used to configure the length of the randomly - `--random-password-length`: If provided, it will be used to configure the length of the randomly
generated password. Optional. (default: 12) generated password. Optional. (default: 12)
- Examples: - Examples:
- `gitea admin create-user --name myname --password asecurepassword --email me@example.com` - `gitea admin create-user --username myname --password asecurepassword --email me@example.com`
- `change-password` - `change-password`
- Options: - Options:
- `--username value`, `-u value`: Username. Required. - `--username value`, `-u value`: Username. Required.