#NEWLINE# @ classmethod #NEWLINE# def get_flag( cls ) : #NEWLINE# #INDENT# "\n        Return the short and the long version of this option.\n\n        The long flag (e.g. 'foo_bar'; used on the command-line like this:\n        --foo_bar[=ARGS]) is derived from the class-name by stripping away any\n        -Option suffix and converting the rest to snake_case.\n\n        The short flag (e.g. 'f'; used on the command-line like this:\n        -f [ARGS]) the short_flag class-member if that is set, or the first\n        letter of the long flag otherwise.\n\n        :return: tuple of short-flag, and long-flag\n        :rtype: (str, str)\n        " #NEWLINE# flag = cls . __name__ #NEWLINE# if flag . endswith ( 'Option' ) : #NEWLINE# #INDENT# flag = flag [ : ( - 6 ) ] #NEWLINE# #UNINDENT# flag = convert_camel_case_to_snake_case ( flag ) #NEWLINE# if ( cls . short_flag is None ) : #NEWLINE# #INDENT# return ( flag [ : 1 ] , flag ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( flag . short_flag , flag )