aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorngourdon <31291059+ngourdon@users.noreply.github.com>2019-04-09 17:21:55 +0200
committertechknowlogick <matti@mdranta.net>2019-04-09 11:21:55 -0400
commit2b9b3310f62f6209cd83fcc082de1aca9a828f17 (patch)
tree143a892a159e910d765a6e28114f98a8209666c2 /docs/content
parent8e949db3b540486a8b5f085ebf2a7ff2d8cea646 (diff)
downloadgitea-2b9b3310f62f6209cd83fcc082de1aca9a828f17.tar.gz
gitea-2b9b3310f62f6209cd83fcc082de1aca9a828f17.zip
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
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/doc/usage/command-line.en-us.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/content/doc/usage/command-line.en-us.md b/docs/content/doc/usage/command-line.en-us.md
index 510e90f954..df749ebe04 100644
--- a/docs/content/doc/usage/command-line.en-us.md
+++ b/docs/content/doc/usage/command-line.en-us.md
@@ -51,7 +51,8 @@ Admin operations:
- Commands:
- `create-user`
- 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.
- `--email value`: Email. Required.
- `--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
generated password. Optional. (default: 12)
- 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`
- Options:
- `--username value`, `-u value`: Username. Required.