]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_argparse: kill _daemon versions of argparse calls 996/head
authorIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 25 Dec 2013 19:41:16 +0000 (21:41 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 25 Dec 2013 19:41:16 +0000 (21:41 +0200)
commit87b8e54fae8afc7717899f0bab5095fd890c6b0f
treed27bf2a379e5c25a3f3700a2a03ca382e830c0de
parentab75df3c006ce38972883090d9af5a0ff6c30633
ceph_argparse: kill _daemon versions of argparse calls

Commit c76bbc2e6df1, which introduced _daemon versions of some of the
argparse calls, also changed the behaviour of non-_daemon versions.
The change resulted in incorrect error messages, e.g.

  $ ./rbd create b0 --size
  rbd: extraneous parameter --size

instead of what should have been

  $ ./rbd create b0 --size
  Option --size requires an argument.

The users of _daemon versions were added in commit be801f6c506d and
removed in commit f26bd55e57f1, so just kill the _daemon versions and
restore the old behaviour.  (This effectively reverts commit
c76bbc2e6df1.)

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/common/ceph_argparse.cc
src/common/ceph_argparse.h