Document valid role names for set-role command

This commit is contained in:
silverpill 2023-03-19 19:08:49 +00:00
parent fcf63ff317
commit b80b827fde
3 changed files with 6 additions and 1 deletions

View file

@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Added `fep-e232` feature flag (disabled by default).
- Added `account_index` parameter to Monero configuration.
### Changed
- Documented valid role names for `set-role` command.
### Fixed
- Make webclient-to-object redirects work for remote profiles and posts.

View file

@ -38,7 +38,7 @@ Set or change password:
mitractl set-password <user-id> <password>
```
Change user's role:
Change user's role (admin, user or read_only_user).
```shell
mitractl set-role <user-id> <role-name>

View file

@ -187,6 +187,7 @@ impl SetPassword {
#[derive(Parser)]
pub struct SetRole {
id: Uuid,
#[clap(value_parser = ["admin", "user", "read_only_user"])]
role: String,
}