diff options
Diffstat (limited to 'src/tools/sdktool/getoperation.cpp')
-rw-r--r-- | src/tools/sdktool/getoperation.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/sdktool/getoperation.cpp b/src/tools/sdktool/getoperation.cpp index c6a836c635..ea8f995bdf 100644 --- a/src/tools/sdktool/getoperation.cpp +++ b/src/tools/sdktool/getoperation.cpp @@ -53,7 +53,13 @@ bool GetOperation::setArguments(const QStringList &args) m_keys = args; m_file = m_keys.takeFirst(); - return true; + + if (m_file.isEmpty()) + std::cerr << "No file given." << std::endl << std::endl; + if (m_keys.isEmpty()) + std::cerr << "No keys given." << std::endl << std::endl; + + return !m_file.isEmpty() && !m_keys.isEmpty(); } int GetOperation::execute() const |