Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Load help before all helpers to prevent error
Browse files Browse the repository at this point in the history
  • Loading branch information
cahrens committed Aug 13, 2019
1 parent 546bcc0 commit 3d0e43e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/magellan
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ co(function *() {
yield cli.loadFramework({ argv });
yield cli.loadExecutors({ argv });

const profiles = yield cli.detectProfiles({ argv, settings });
const executors = yield cli.enableExecutors({ argv, profiles });
const strategies = yield cli.loadStrategies({ argv });

if (argv.help) {
yield cli.help({ argv });
}

const profiles = yield cli.detectProfiles({ argv, settings });
const executors = yield cli.enableExecutors({ argv, profiles });
const strategies = yield cli.loadStrategies({ argv });
const listeners = yield cli.loadListeners({ argv });

// console.log(profiles)
// console.log(strategies)
// console.log(listeners)
Expand Down

0 comments on commit 3d0e43e

Please sign in to comment.