From: Mohamad Gebai Date: Thu, 1 Mar 2018 19:49:42 +0000 (-0500) Subject: ceph.in: add polling period option X-Git-Tag: v13.1.0~254^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be3c7f61ffe22c3d8e682b7b0b78cf7f363569e8;p=ceph.git ceph.in: add polling period option Signed-off-by: Mohamad Gebai --- diff --git a/src/ceph.in b/src/ceph.in index edea696e7c49..29efdde3b65a 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -319,6 +319,9 @@ def parse_cmdargs(args=None, target=''): parser.add_argument('--block', action='store_true', help='block until completion (scrub and deep-scrub only)') + parser.add_argument('--period', '-p', default=1, type=float, + help='polling period, default 1.0 second (for ' \ + 'polling commands only)') # returns a Namespace with the parsed args, and a list of all extras parsed_args, extras = parser.parse_known_args(args)