Skip to content

Commit 7b65aa7

Browse files
committed
Merge pull request #10 from felds/master
Avoid double help
2 parents 6883f6b + 7f00605 commit 7b65aa7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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)