Closed hashstat closed 8 years ago
This appears to be caused by a modification to Python's argparse module. This was working on my system with an earlier version of Python. I am currently running version 2.7.10 and am experiencing the bug. However, on an Ubuntu system running version 2.7.6, everything works as expected. Further examination is required.
I verified that this bug is caused by a change in the argparse module introduced in Python 2.7.9. It can be fixed by setting defaults on the root parser of inherited parser instances rather than on their children. A fix is forthcoming.
Oops. 09ded6f66 didn't actually fix the issue. I just forgot to revert my changes to the argparse module during testing. Back to the drawing board.
Python revision 1a3143752db2 is responsible for the backward-incompatible change to fix Python issue 9351 and is causing Issue 24251. It appears that the easiest fix is to override the new code in argparse with the old. :-(
Calling
volttron-ctl --vip-address /tmp/vip.socket status
is not the same as callingvolttron-ctl status --vip-address /tmp/vip.socket
. The latter works as expected while the former ignores the --vip-address option, not even displaying an error. These two commands should be identical.