]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind: enable --keyword=arguments in ceph_argparse
authorJohn Spray <john.spray@redhat.com>
Fri, 28 Sep 2018 14:40:23 +0000 (10:40 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 2 Nov 2018 10:57:41 +0000 (06:57 -0400)
commite8775e8f30303cb048fa566971feb37d3575446b
tree9fff321b77cc935e47ea18d8c06acf2dd8e34265
parentbd548c0e612b3fd8660bd415950f30f233950a10
pybind: enable --keyword=arguments in ceph_argparse

This is a simple implementation that treats anything
that matches the "--X=Y" pattern as separate from
positional arguments.

This works well for optional arguments.  Mandatory
arguments still need to be specified positionally,
or the parsing code will think the command's
argument description has not been satisfied.

Signed-off-by: John Spray <john.spray@redhat.com>
PendingReleaseNotes
src/pybind/ceph_argparse.py