mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Make admin add/remove command arguments positional again
This commit is contained in:
parent
680492cea6
commit
172bddf731
@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Mushroom Curry gives long-lasting Regeneration buff
|
- Mushroom Curry gives long-lasting Regeneration buff
|
||||||
- Trades now consider if items can stack in full inventories.
|
- Trades now consider if items can stack in full inventories.
|
||||||
- The types of animals that can be tamed as pets are now limited to certain species, pending further balancing of pets
|
- The types of animals that can be tamed as pets are now limited to certain species, pending further balancing of pets
|
||||||
|
- Made server-cli admin add/remove command use positional arguments again
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
@ -8,15 +8,13 @@ use tracing::error;
|
|||||||
pub enum Admin {
|
pub enum Admin {
|
||||||
/// Adds an admin
|
/// Adds an admin
|
||||||
Add {
|
Add {
|
||||||
#[structopt(short, long)]
|
|
||||||
/// Name of the admin to whom to assign a role
|
/// Name of the admin to whom to assign a role
|
||||||
username: String,
|
username: String,
|
||||||
/// role to assign to the admin
|
/// role to assign to the admin
|
||||||
#[structopt(short, long, possible_values = &comp::AdminRole::variants(), case_insensitive = true)]
|
#[structopt(possible_values = &comp::AdminRole::variants(), case_insensitive = true)]
|
||||||
role: comp::AdminRole,
|
role: comp::AdminRole,
|
||||||
},
|
},
|
||||||
Remove {
|
Remove {
|
||||||
#[structopt(short, long)]
|
|
||||||
/// Name of the admin from whom to remove any existing roles
|
/// Name of the admin from whom to remove any existing roles
|
||||||
username: String,
|
username: String,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user