diff options
author | Asit Dhal <dhal.asitk@gmail.com> | 2020-06-12 02:59:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-06-15 16:39:37 (GMT) |
commit | b5b60755228e3b1489d5cd43622c08d0d8d77bc9 (patch) | |
tree | 1c9b1df401df457c0db676bf1d90c98111fe85db /Source/cmcmd.cxx | |
parent | 43b10e2411858ae7734c54480a8c0c6c3ccd659b (diff) | |
download | CMake-b5b60755228e3b1489d5cd43622c08d0d8d77bc9.zip CMake-b5b60755228e3b1489d5cd43622c08d0d8d77bc9.tar.gz CMake-b5b60755228e3b1489d5cd43622c08d0d8d77bc9.tar.bz2 |
cmake: add dedicated error for -E compare_files invalid arguments
Return 2 when user provides invalid arguments
Fixes: #20815
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index cbc8e8f..6882fdd 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -582,7 +582,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args) filesDiffer = cmsys::SystemTools::TextFilesDiffer(args[3], args[4]); } else { ::CMakeCommandUsage(args[0].c_str()); - return 1; + return 2; } if (filesDiffer) { |