#!/usr/bin/env node
var path = require('canonical-path');
var myArgs = require('optimist')
  .usage('Usage: $0 path/to/mainPackage [path/to/other/packages ...]')
  .demand(1)
  .argv;

var Dgeni = require('dgeni');

// Extract the paths to the packages from the command line arguments
var packagePaths = myArgs._;

// Require each of these packages and then create a new dgeni using them
var dgeni = new Dgeni(packagePaths.map(function(packagePath) {
  if ( packagePath.startsWith('.') ) { packagePath = path.resolve(packagePath); }
  return require(packagePath);
}));

// Run the document generation
dgeni.generate()
  .then(function() {
    console.log('Finished generating docs');
  })
  .done();
@@ -389,26 +389,19 @@
 var 
-dgeni = new Dgeni(
+packages = 
 pack
@@ -475,16 +475,20 @@
 '.') ) %7B
+%0A   
  package
@@ -520,16 +520,18 @@
 gePath);
+%0A 
  %7D%0A  ret
@@ -558,16 +558,49 @@
 ath);%0A%7D)
+;%0A%0Avar dgeni = new Dgeni(packages
 );%0A%0A// R
@@ -642,19 +642,16 @@
 nerate()
-%0A  
 .then(fu
@@ -661,18 +661,16 @@
 ion() %7B%0A
-  
   consol
@@ -708,15 +708,10 @@
 ');%0A
-  %7D)%0A  
+%7D)
 .don

update to no-config