]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/ceph_argparse: stop parsing when we run out of positional args
authorSage Weil <sage@newdream.net>
Sat, 22 May 2021 17:00:24 +0000 (13:00 -0400)
committerSage Weil <sage@newdream.net>
Tue, 1 Jun 2021 18:45:11 +0000 (14:45 -0400)
commitfb80427ec1cc8ba61fe75bb45819baa857674ee6
treef9759f578c8dea37ab1c4232d7316f7a15f44726
parent747eb7d1429a4903892069387588ed70f518503f
pybind/ceph_argparse: stop parsing when we run out of positional args

If we encouter an arg that is not a named flag/arg, and the next
item in the command description is non-positional, then raise an
'unexpected argument' exception.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/ceph_argparse.py