From: Loic Dachary Date: Sun, 15 Dec 2013 14:34:17 +0000 (+0100) Subject: ceph-disk: zap needs at least one device X-Git-Tag: v0.75~106^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=07888ef3fd4440332c8287d0faa9f23a32cf141c;p=ceph.git ceph-disk: zap needs at least one device If given no argument, ceph-disk zap should display the usage instead of silently doing nothing. Silence can be confused with "I zapped all the disks". http://tracker.ceph.com/issues/6981 fixes #6981 Signed-off-by: Loic Dachary --- diff --git a/src/ceph-disk b/src/ceph-disk index 3709dd2a863f..52026d1dcd3d 100755 --- a/src/ceph-disk +++ b/src/ceph-disk @@ -2384,7 +2384,7 @@ def parse_args(): zap_parser.add_argument( 'dev', metavar='DEV', - nargs='*', + nargs='+', help='path to block device', ) zap_parser.set_defaults(