From a5ad6e4a338c39ac36f47c3e1313dccca23ba0a6 Mon Sep 17 00:00:00 2001 From: zhaolihui Date: Sat, 25 Jun 2022 09:37:48 +0800 Subject: [PATCH] fixed 3ba72a3 from https://gitee.com/faithwang/developtools_hdc_standard/pulls/398 Fix option s in path Signed-off-by: zhaolihui --- src/host/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/host/main.cpp b/src/host/main.cpp index c953fc53..1666bf26 100644 --- a/src/host/main.cpp +++ b/src/host/main.cpp @@ -122,7 +122,11 @@ int SplitOptionAndCommand(int argc, const char **argv, string &outOption, string outCommand += rawCmd.find(" ") == string::npos ? rawCmd : packageCmd; } else { outOption += outOption.size() ? " " : ""; - outOption += argv[i]; + if (i == 0) { + outOption += Base::StringFormat("\"%s\"", argv[i]); + } else { + outOption += argv[i]; + } } } return 0; -- Gitee