]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Improve "ceph_argparse.py: add stderr note if nonrequired param is invalid"
authorDavid Zafman <dzafman@redhat.com>
Tue, 17 Mar 2015 03:34:10 +0000 (20:34 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 17 Mar 2015 15:19:44 +0000 (08:19 -0700)
commita3dfeec07a4e87f0be1025d6174c3f1308f53481
treed933ce9a26b97517ce9b4591329bcda60205b2f6
parente219918a4fcfe47a9026df9eb5570b2eca137218
Improve "ceph_argparse.py: add stderr note if nonrequired param is invalid"

When processing arguments stash an exception which is seen when looking
for another argument type.  If we have extra args at the end, output
information about the exception which probably caused the problem.

Fixes: #11093
Original fix: 71ff794eca7dd57a0b0473530f685069ac9987f0

Signed-off-by: David Zafman <dzafman@redhat.com>
src/pybind/ceph_argparse.py