diff --git a/src/Commands/DeleteAllCommands.php b/src/Commands/DeleteAllCommands.php
index c78daae..c861a14 100644
--- a/src/Commands/DeleteAllCommands.php
+++ b/src/Commands/DeleteAllCommands.php
@@ -206,7 +206,7 @@ class DeleteAllCommands extends DrushCommands {
     $vars = func_get_args();
     // Check for presence of '--type' in drush command.
     //
-    echo drush_get_option('type');
+    echo drush_get_global_options('type');
     if ($options['type']) {
 
       $entity_type_options = $options['type'];
@@ -235,7 +235,7 @@ class DeleteAllCommands extends DrushCommands {
       }
 
       // Check for presence of '--bundle' in drush command.
-      if (drush_get_option('bundle')) {
+      if (drush_get_global_options('bundle')) {
 
         if ($vars && isset($vars[1])) {