Skip to content

Commit

Permalink
fix(bin): fixes help usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 28, 2019
1 parent 75d114f commit 52381ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default async function main(argv: string[]): Promise<void> {
${pkg.description ? chalk.bold.yellow(pkg.description) : ''}
Usage:
$ kpo [options] [scope] [tasks]
$ kpo [:command] [options] [arguments]
$ kpo [options] [@scope] [tasks]
$ kpo [options] [@scope] [:command] [arguments]
Options:
-f, --file <path> Configuration file
Expand Down Expand Up @@ -71,6 +71,7 @@ export default async function main(argv: string[]): Promise<void> {
directory: cmd['--dir'],
silent: cmd['--silent'],
log: cmd['--log'] as TLogger,
// TODO these should be set in process.env so when required, the js has them
env: (cmd['--env'] || [])
.concat(cmd['--node'] ? `NODE_ENV=${cmd['--node']}` : [])
.reduce((acc: IOfType<string>, str) => {
Expand Down

0 comments on commit 52381ad

Please sign in to comment.