inputbubbleref option should be used with inputbubble option (#377)
author최종헌/Common Platform Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Wed, 9 Feb 2022 05:17:20 +0000 (14:17 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 9 Feb 2022 05:17:20 +0000 (14:17 +0900)
Change-Id: I4bb3a5063b8dcbfbd06ce3fbc3ae333aac9e13d3

NativeLauncher/tool/dotnettool.cc

index 6697960..e05076c 100644 (file)
@@ -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;
        }