From b18e975c2791c308499371173da11cbfa5297650 Mon Sep 17 00:00:00 2001 From: Opportunity Date: Wed, 15 Jan 2020 18:27:47 +0800 Subject: fix --- xmake/core/base/cli.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/base/cli.lua b/xmake/core/base/cli.lua index 2ec5d8d42..310335fd4 100644 --- a/xmake/core/base/cli.lua +++ b/xmake/core/base/cli.lua @@ -57,7 +57,7 @@ function cli._make_flag(key, short, argv, argi) end function cli._make_option(key, value, short, argv, argi) - return cli._make_segment('option', short and ('-' .. key .. value) or ('--' .. key .. '=' .. value), argv, argi, { key = key, value = value, short = short or false }) + return cli._make_segment('option', short and ('-' .. key .. ' ' .. value) or ('--' .. key .. '=' .. value), argv, argi, { key = key, value = value, short = short or false }) end function cli.parse(args, ...) -- cgit v1.3.1