add missing help text and redo the existing ones based on CommandHelp.cs

This commit is contained in:
dawn 2026-01-17 11:29:42 +03:00
parent bdf6a6c345
commit e2b354aae1
No known key found for this signature in database
14 changed files with 142 additions and 99 deletions

View file

@ -17,13 +17,23 @@ pub fn cmds() -> impl IntoIterator<Item = Command> {
];
[
command!(switch, ("commands", ["help"]) => "switch_commands"),
command!(switch, out => "switch_out"),
command!(switch, delete => "switch_delete").flag(("all", ["clear", "c"])),
command!(switch, r#move, Remainder(OpaqueString) => "switch_move"), // TODO: datetime parsing
command!(switch, edit, out => "switch_edit_out").flag(YES),
command!(switch, edit, Optional(MemberRefs) => "switch_edit").flags(edit_flags),
command!(switch, copy, Optional(MemberRefs) => "switch_copy").flags(edit_flags),
command!(switch, MemberRefs => "switch_do"),
command!(switch, ("commands", ["help"]) => "switch_commands")
.help("Shows help for switch commands"),
command!(switch, out => "switch_out").help("Registers a switch with no members"),
command!(switch, delete => "switch_delete")
.help("Deletes the latest switch")
.flag(("all", ["clear", "c"])),
command!(switch, r#move, Remainder(OpaqueString) => "switch_move")
.help("Moves the latest switch in time"), // TODO: datetime parsing
command!(switch, edit, out => "switch_edit_out")
.help("Turns the latest switch into a switch-out")
.flag(YES),
command!(switch, edit, Optional(MemberRefs) => "switch_edit")
.help("Edits the members in the latest switch")
.flags(edit_flags),
command!(switch, copy, Optional(MemberRefs) => "switch_copy")
.help("Makes a new switch with the listed members added")
.flags(edit_flags),
command!(switch, MemberRefs => "switch_do").help("Registers a switch"),
]
}