Skip to content

Commit 7f00605

Browse files
author
Felds Liscia
committed
mark as parsed on the beginning of the parsing method
1 parent dc5af5a commit 7f00605

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/Commando/Command.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ private function parseIfNotParsed()
293293
*/
294294
public function parse()
295295
{
296+
$this->parsed = true;
297+
296298
try {
297299
$tokens = $this->tokens;
298300
// the executed filename
@@ -368,9 +370,6 @@ public function parse()
368370
// Used in the \Iterator implementation
369371
$this->sorted_keys = array_keys($this->options);
370372
natsort($this->sorted_keys);
371-
372-
$this->parsed = true;
373-
374373
} catch(\Exception $e) {
375374
$this->error($e);
376375
}

0 commit comments

Comments
 (0)