def __add_obsolete_options(parser):
 g = parser.add_argument_group('Obsolete options (not used anymore)')
 g.add_argument(action=__obsolete_option, help='These options do not exist anymore.', *_OLD_OPTIONS)

def __add_obsolete_options ( parser ) : g = parser . add_argument_group ( 'Obsolete options (not used anymore)' ) g . add_argument ( action = __obsolete_option , help = 'These options do not exist anymore.' , * _OLD_OPTIONS )
add the obsolete options to a option-parser instance and print error message when they are present .