From: Dongsheng Yang Date: Thu, 18 Feb 2016 05:53:20 +0000 (+0800) Subject: ceph-disk: make some arguments as required if necessary X-Git-Tag: v10.1.0~337^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7ee9968971795b5c45b67ea9ddb36db096d266a1;p=ceph.git ceph-disk: make some arguments as required if necessary There is no default value for these arguments, and they are necessary. Then make them as required. Fixes 9666 Signed-off-by: Dongsheng Yang --- diff --git a/src/ceph-disk/ceph_disk/main.py b/src/ceph-disk/ceph_disk/main.py index 944716743386..82ce89135fdc 100755 --- a/src/ceph-disk/ceph_disk/main.py +++ b/src/ceph-disk/ceph_disk/main.py @@ -4284,7 +4284,7 @@ def make_activate_parser(subparsers): activate_parser.add_argument( 'path', metavar='PATH', - nargs='?', + nargs=1, help='path to block device or directory', ) activate_parser.add_argument( @@ -4417,7 +4417,7 @@ def make_suppress_parser(subparsers): suppress_parser.add_argument( 'path', metavar='PATH', - nargs='?', + nargs=1, help='path to block device or directory', ) suppress_parser.set_defaults( @@ -4430,7 +4430,7 @@ def make_suppress_parser(subparsers): unsuppress_parser.add_argument( 'path', metavar='PATH', - nargs='?', + nargs=1, help='path to block device or directory', ) unsuppress_parser.set_defaults( @@ -4452,7 +4452,7 @@ def make_deactivate_parser(subparsers): deactivate_parser.add_argument( 'path', metavar='PATH', - nargs='?', + nargs=1, help='path to block device or directory', ) deactivate_parser.add_argument( @@ -4483,7 +4483,7 @@ def make_destroy_parser(subparsers): destroy_parser.add_argument( 'path', metavar='PATH', - nargs='?', + nargs=1, help='path to block device or directory', ) destroy_parser.add_argument(