#NEWLINE# def register( self , cmd_name , options_context ) : #NEWLINE# #INDENT# if ( cmd_name in self . _contexts ) : #NEWLINE# #INDENT# raise ValueError ( ( 'options context for command %r already registered !' % cmd_name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _contexts [ cmd_name ] = options_context