Skip to content

Commit e11ce70

Browse files
committed
Fixing argument parsing
1 parent 14b8f9c commit e11ce70

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/mcp/client/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,12 @@ def cli():
7878
)
7979
parser.add_argument(
8080
"--disable-ssl-verification",
81-
nargs="+",
82-
default=[],
81+
action='store_true',
8382
help="Disable SSL verification when using HTTPS. SSL verification is enabled by default.",
8483
)
8584

8685
args = parser.parse_args()
87-
anyio.run(partial(main, args.command_or_url, args.args, args.env, args.disable_ssl_verification if len(args.disable_ssl_verification) > 0 else False), backend="trio")
86+
anyio.run(partial(main, args.command_or_url, args.args, args.env, args.disable_ssl_verification), backend="trio")
8887

8988

9089
if __name__ == "__main__":

0 commit comments

Comments
 (0)