Fix unit test failure
Change-Id: Id1b21531087c5a37c4bbf8427a20a647cabdc344
This commit is contained in:
parent
36d3987a77
commit
3ffe4d03a5
@ -332,29 +332,28 @@ class Update(command.ShowOne):
|
|||||||
help="Function entry in the format of <module_name>.<method_name>"
|
help="Function entry in the format of <module_name>.<method_name>"
|
||||||
)
|
)
|
||||||
|
|
||||||
package_group = parser.add_argument_group('package_group')
|
package_group = parser.add_mutually_exclusive_group()
|
||||||
swift_group = parser.add_argument_group('swift_group')
|
package_group.add_argument(
|
||||||
|
|
||||||
group = package_group.add_mutually_exclusive_group()
|
|
||||||
group.add_argument(
|
|
||||||
"--file",
|
"--file",
|
||||||
metavar="CODE_FILE_PATH",
|
metavar="CODE_FILE_PATH",
|
||||||
help="Code file path."
|
help="Code file path."
|
||||||
)
|
)
|
||||||
group.add_argument(
|
package_group.add_argument(
|
||||||
"--package",
|
"--package",
|
||||||
metavar="CODE_PACKAGE_PATH",
|
metavar="CODE_PACKAGE_PATH",
|
||||||
help="Code package zip file path."
|
help="Code package zip file path."
|
||||||
)
|
)
|
||||||
|
|
||||||
swift_group.add_argument(
|
# For swift functions
|
||||||
|
parser.add_argument(
|
||||||
"--container",
|
"--container",
|
||||||
help="Container name in Swift.",
|
help="Container name in Swift.",
|
||||||
)
|
)
|
||||||
swift_group.add_argument(
|
parser.add_argument(
|
||||||
"--object",
|
"--object",
|
||||||
help="Object name in Swift.",
|
help="Object name in Swift.",
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--cpu",
|
"--cpu",
|
||||||
type=q_utils.check_positive,
|
type=q_utils.check_positive,
|
||||||
|
Loading…
Reference in New Issue
Block a user