]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_argparse.py: add stderr note if nonrequired param is invalid
authorDan Mick <dan.mick@inktank.com>
Sat, 3 Aug 2013 03:46:00 +0000 (20:46 -0700)
committerDan Mick <dan.mick@inktank.com>
Mon, 5 Aug 2013 18:20:36 +0000 (11:20 -0700)
commit71ff794eca7dd57a0b0473530f685069ac9987f0
tree3b92f8a4c8f3e6183130ff2da2dd6f09bb863201
parent9466a0b152beeab894be66c6528495ca01a1974a
ceph_argparse.py: add stderr note if nonrequired param is invalid

If we run across a user-supplied parameter that doesn't validate against
a non-required descriptor, it may be that it's a valid entry for a later
descriptor...or it may be that it's supposed to match.  We can't really tell.
A possible heuristic would be to call it invalid-for-sure if we're at the
end of the descriptor list, but that's not very generic.

Warn about it and try to drive on anyway.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/pybind/ceph_argparse.py