Lets say, I've got a parser:
self.__parser = argparse.ArgumentParser(
prog = '<...>',
fromfile_prefix_chars='@')
After it is initialized I want in runtime to change the prog variable in argparser to something else, lets say: 'aaa'.
Code:
self.__parser.prog = 'aaa'
does NOT work, because argparser caches this prog somwhere inside ts formatters. Does somebody knows if is it possible to change this property in simple way?