diff --git a/src/Commando/Command.php b/src/Commando/Command.php index a9c972c..be40252 100644 --- a/src/Commando/Command.php +++ b/src/Commando/Command.php @@ -293,6 +293,8 @@ private function parseIfNotParsed() */ public function parse() { + $this->parsed = true; + try { $tokens = $this->tokens; // the executed filename @@ -368,9 +370,6 @@ public function parse() // Used in the \Iterator implementation $this->sorted_keys = array_keys($this->options); natsort($this->sorted_keys); - - $this->parsed = true; - } catch(\Exception $e) { $this->error($e); }