diff --git a/src/Nut/DatabaseExport.php b/src/Nut/DatabaseExport.php
index <HASH>..<HASH> 100644
--- a/src/Nut/DatabaseExport.php
+++ b/src/Nut/DatabaseExport.php
@@ -44,6 +44,9 @@ class DatabaseExport extends BaseCommand
 
         // Check if export file can be created
         $file = $input->getOption('file');
+            if (empty($file)) {
+            throw new \RuntimeException('The --file option is required.');
+        }
         if (!$this->isFileWriteable($file, $output)) {
             return;
         }
diff --git a/src/Nut/DatabaseImport.php b/src/Nut/DatabaseImport.php
index <HASH>..<HASH> 100644
--- a/src/Nut/DatabaseImport.php
+++ b/src/Nut/DatabaseImport.php
@@ -37,6 +37,9 @@ class DatabaseImport extends BaseCommand
     protected function execute(InputInterface $input, OutputInterface $output)
     {
         $files = $input->getOption('file');
+        if (empty($files)) {
+            throw new \RuntimeException('The --files option is required.');
+        }
 
         // Check passed files are all valid
         if (!$this->isFilesValid($files, $output)) {
Throw a new \RuntimeException if files are not given for import/export