Skip to content

Commit

Permalink
renamed options() -> options()
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbieh committed Apr 17, 2016
1 parent e7e88b4 commit e9eead7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,16 @@ Flightplan.prototype.availableTargets = function() {
* Convenience method to allow easier access to runtime options
*
* ```javascript
* plan.option('myOption');
* plan.options(); // get all options
* plan.options('myOption'); // get one specific option
* ```
*
* @method option(key)
* @method options(key)
*/
Flightplan.prototype.option = function(key) {
Flightplan.prototype.options = function(key) {
if(typeof key === 'undefined') {
return this.runtime.options;
}
return this.runtime.options && this.runtime.options[key];
};

Expand Down

0 comments on commit e9eead7

Please sign in to comment.