argh

How to change the PARSER_FORMATTER when using python's argh library

How to change the PARSER_FORMATTER when using python's argh library Question: Using the Argh library for Python I want to provide another PARSER_FORMATTER when I dispatch my function with argh.dispatch_command. I tried: import argh import argparse argh.PARSER_FORMATTER = argparse.RawTextHelpFormatter def myfunct(arg, param=None): pass # here my working code if __name__ == ‘__main__’: argh.dispatch_command(myfunct) But when …

Total answers: 2