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 <loic@dachary.org>
(cherry picked from commit
07888ef3fd4440332c8287d0faa9f23a32cf141c)
zap_parser.add_argument(
'dev',
metavar='DEV',
- nargs='*',
+ nargs='+',
help='path to block device',
)
zap_parser.set_defaults(