@@ -170,10 +170,12 @@ def do_board(self, args) -> None:
170170 ),
171171 )
172172 comment_subcmds = comment_argparser .add_subparsers (dest = "subcmd" )
173- comment_subcmds .add_parser ("show" , help = "Show the comment at the current move." )
173+ comment_subcmds .add_parser ("show" , aliases = [ "sh" ], help = "Show the comment at the current move." )
174174 comment_subcmds .add_parser ("rm" , help = "Remove the comment at the current move." )
175- comment_subcmds .add_parser ("edit" , help = "Open the comment in your editor." )
176- comment_set_argparser = comment_subcmds .add_parser ("set" , help = "Set the comment for this move." )
175+ comment_subcmds .add_parser ("edit" , aliases = ["e" ], help = "Open the comment in your editor." )
176+ comment_set_argparser = comment_subcmds .add_parser (
177+ "set" , aliases = ["s" ], help = "Set the comment for this move."
178+ )
177179 comment_set_argparser .add_argument ("comment" , help = "The new text." )
178180 comment_append_argparser = comment_subcmds .add_parser (
179181 "append" , help = "Append text to the already existing comment."
@@ -201,18 +203,18 @@ def set_comment(new_comment: str) -> None:
201203 self .game_node .comment = new_comment
202204
203205 match args .subcmd :
204- case "show" | None :
206+ case "show" | "sh" | None :
205207 self .poutput (comment )
206208 case "rm" :
207209 set_comment ("" )
208- case "set" :
210+ case "set" | "s" :
209211 new_comment = (
210212 args .comment if args .raw else update_comment_text (comment , args .comment )
211213 )
212214 set_comment (new_comment )
213215 case "append" :
214216 set_comment (add_to_comment_text (comment , args .comment ))
215- case "edit" :
217+ case "edit" | "e" :
216218 fd , file_name = tempfile .mkstemp (suffix = ".txt" , text = True )
217219 try :
218220 with os .fdopen (fd , mode = "w" ) as file :
0 commit comments