#NEWLINE# @ classmethod #NEWLINE# def register( klass , command ) : #NEWLINE# #INDENT# klass . COMMANDS [ command . name ] = command #NEWLINE# if command . short : #NEWLINE# #INDENT# for short in command . short : #NEWLINE# #INDENT# klass . SHORT_MAP [ short ] = command