]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/cmdparse: handle array of integer also
authorKefu Chai <kchai@redhat.com>
Sat, 9 Jan 2016 03:20:59 +0000 (11:20 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 3 May 2016 14:42:29 +0000 (22:42 +0800)
commit6e475df7d7c2d6e530c6feb02fc34557209aa35a
tree890778053dd88836c4be18f8a6e3ee8b241624df
parentfe20133543119082f6a994811a1be5d53955faec
common/cmdparse: handle array of integer also

we need to handle cmd arg of [int..]. for example, the osdid in
"ceph osd pg-temp <pgid> <osdid>.." could be represented using an array
of integers instead of an array of strings.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/cmdparse.cc
src/common/cmdparse.h