From: 최종헌/Common Platform Lab(SR)/삼성전자 Date: Wed, 9 Feb 2022 05:17:20 +0000 (+0900) Subject: inputbubbleref option should be used with inputbubble option (#377) X-Git-Tag: submit/tizen/20220222.013136~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a0f9a714f4c9b96001a4e6ee6a207df3a465ac5;p=platform%2Fcore%2Fdotnet%2Flauncher.git inputbubbleref option should be used with inputbubble option (#377) Change-Id: I4bb3a5063b8dcbfbd06ce3fbc3ae333aac9e13d3 --- diff --git a/NativeLauncher/tool/dotnettool.cc b/NativeLauncher/tool/dotnettool.cc index 6697960..e05076c 100644 --- a/NativeLauncher/tool/dotnettool.cc +++ b/NativeLauncher/tool/dotnettool.cc @@ -57,12 +57,12 @@ void DisplayUsage() { "Options:\n" " --ibc-dir - Specify a directory containing IBC files\n" " --verbose - Display verbose information\n" - " --inputbubble - Use inputbubble (run with --crossgen2 option)\n" - " --inputbubbleref - Path of references for inputbubble\n" + " --inputbubble - Use inputbubble\n" + " --inputbubbleref - Path of references for inputbubble (used with --inputbubble option)\n" " (If not set, all references are included to inputbubble.)\n" " --ref - Path of references\n" " (If not set, default system paths are used.)\n" - " --no-pipeline - Compile the dlls individually (run with --crossgen2 option)\n" + " --no-pipeline - Compile the dlls individually\n" " --print-cmd - Print command and options\n" "\n" "Usage: dotnettool [options] [command] [arguments]\n" @@ -182,6 +182,12 @@ int main(int argc, char* argv[]) } } + if (opt->flags & NI_FLAGS_INPUT_BUBBLE_REF && !(opt->flags & NI_FLAGS_INPUT_BUBBLE)) { + _SERR("--inputbubbleref option should be used with --inputbubble option"); + DisplayUsage(); + return -1; + } + if (initNICommon() != NI_ERROR_NONE) { return -1; }