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

Commit

Permalink
Fix bug with args
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Mar 23, 2016
1 parent c43c66a commit a6b8fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function bin (generator: Generator, pkg: Pkg, argv: string[]): Promise<vo
interface Args {
include: string[]
data: string
output: string
out: string
}

const args = yargs
Expand Down Expand Up @@ -61,7 +61,7 @@ export function bin (generator: Generator, pkg: Pkg, argv: string[]): Promise<vo
.then(data => generator(json, data))
})
.then(function (output: GeneratorResult) {
return objectToFs(resolve(cwd, args.output), output.files)
return objectToFs(resolve(cwd, args.out), output.files)
})
.then(function () {
process.exit(0)
Expand Down

0 comments on commit a6b8fb6

Please sign in to comment.