]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_argparse.py: clean up error reporting when required param missing 666/head
authorDan Mick <dan.mick@inktank.com>
Fri, 27 Sep 2013 05:24:37 +0000 (22:24 -0700)
committerDan Mick <dan.mick@inktank.com>
Tue, 1 Oct 2013 04:09:16 +0000 (21:09 -0700)
commit3452aadd81dae627f4321aa40db9d6c14466ef16
tree87be7eb60fcb22784b57a94694a674939fddee1e
parentfac4a897f948c51e22b075b42e5cbe8a259235bc
ceph_argparse.py: clean up error reporting when required param missing

Treat "need 1, got 0" as a special case, and change the message to
"missing required parameter <x>".  Also, when failing for that reason,
print the command concise description and its helptext.

Fixes: #6384
Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/pybind/ceph_argparse.py