Using dev-python/argparse-1.1 with Python-2.6.5 gives /usr/lib64/python2.6/site-packages/argparse.py:1576: DeprecationWarning: The "version" argument to ArgumentParser is deprecated. Please use "add_argument(..., action='version', version="N", ...)" instead """instead""", DeprecationWarning) Reproducible: Always
This is not a bug in the argparse module. The deprecation warning is because the software using the module is passing a version= argument to the ArgumentParser() method when it is creating the parser instead of using the parser.add_argument method to create a version option. For more information, see section 15.4.6 of the standard library documentation for python 2.7 [1], which also applies if using argparse with python 2.6. http://docs.python.org/library/argparse.html
I agree with comment #1, closing.