mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
make some common flags into constants
This commit is contained in:
parent
479e0a59b5
commit
f4216a83a9
10 changed files with 95 additions and 89 deletions
|
|
@ -1,5 +1,7 @@
|
|||
use command_parser::flag::Flag;
|
||||
|
||||
use crate::ALL;
|
||||
|
||||
pub fn get_list_flags() -> [Flag; 22] {
|
||||
[
|
||||
// Short or long list
|
||||
|
|
@ -31,7 +33,7 @@ pub fn get_list_flags() -> [Flag; 22] {
|
|||
// Sort reverse
|
||||
Flag::from(("reverse", ["r", "rev"])),
|
||||
// Privacy filter
|
||||
Flag::from(("all", ["a"])),
|
||||
Flag::from(ALL),
|
||||
Flag::from(("private-only", ["po"])),
|
||||
// Additional fields to include
|
||||
Flag::from((
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue