make some common flags into constants

This commit is contained in:
dusk 2025-10-08 04:29:48 +00:00
parent 479e0a59b5
commit f4216a83a9
No known key found for this signature in database
10 changed files with 95 additions and 89 deletions

View file

@ -12,5 +12,5 @@ pub fn cmds() -> impl Iterator<Item = Command> {
command!(group::targeted(), random => "group_random_member").flags(get_list_flags()),
]
.into_iter()
.map(|cmd| cmd.flag(("all", ["a"])))
.map(|cmd| cmd.flag(ALL))
}