diff --git a/src/Deployer/Tool.php b/src/Deployer/Tool.php
index <HASH>..<HASH> 100644
--- a/src/Deployer/Tool.php
+++ b/src/Deployer/Tool.php
@@ -55,10 +55,10 @@ class Tool
      */
     private $ignore = array();
 
-    public function __construct()
+    public function __construct(array $argv = null)
     {
         $this->app = new Application('Deployer', '0.3.0');
-        $this->input = new ArgvInput();
+        $this->input = new ArgvInput($argv);
         $this->output = new ConsoleOutput();
         $this->local = new Local();
     }
diff --git a/src/deployer.php b/src/deployer.php
index <HASH>..<HASH> 100644
--- a/src/deployer.php
+++ b/src/deployer.php
@@ -9,11 +9,12 @@
  * Start deployer script.
  *
  * @param bool $includeFunction Include or not helpful functions.
+ * @param array|null $argv
  * @return \Deployer\Tool
  */
-function deployer($includeFunction = true)
+function deployer($includeFunction = true, array $argv = null)
 {
-    $tool = new Deployer\Tool();
+    $tool = new Deployer\Tool($argv);
 
     if ($includeFunction) {
         Deployer\Tool\Context::push($tool);
Posibility to pass argv in Deployer\Tool for working with input parameters