Skip to content
Browse files

Merge pull request #6 from Felds/force-parsing

Force Command to parse the arguments
  • Loading branch information...
2 parents 396967c + a8a799b commit dc5af5a287029f1c3736dba6e7166ba288ae8913 @nategood committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/Commando/Command.php
View
7 src/Commando/Command.php
@@ -86,6 +86,13 @@ public function __construct($tokens = null)
$this->setTokens($tokens);
}
+ public function __destruct()
+ {
+ if (!$this->parsed) {
+ $this->parse();
+ }
+ }
+
/**
* Factory style reads a little nicer
* @param array $tokens defaults to $argv

0 comments on commit dc5af5a

Please sign in to comment.
Something went wrong with that request. Please try again.