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

@ -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((