I have such script:
import argparse parser = argparse.ArgumentParser( description=\'Text file conversion.\' ) parser.add_arg
I'm using args.__dict__, which lets you access the underlying dict structure. Then, its a simple key-value iteration:
args.__dict__
for k in args.__dict__: print k, args.__dict__[k]