Skip to content

Commit

Permalink
update cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kommander committed May 5, 2017
1 parent d5fc55e commit c613c92
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const cluster = require('cluster');
* Aden CLI
*/
program
.usage('[rootpath][options]')
.usage('[options] <rootpath ...>')
.option('-b, --build', 'Will only build out the app assets and exit (not start the server)')
.option('-d, --dev', 'Run in development mode (live reload)')
.option('-w, --workers [num]', 'Start with given [num] of workers, or all CPUs.')
Expand All @@ -31,8 +31,15 @@ program
// TODO: .option('--eject', 'Setup the project to run standalone webpack builds without aden')

.option('--log-no-date', 'Omit date from log output')
.version(pckgJson.version)
.parse(process.argv);
.version(pckgJson.version);

/* eslint-disable */
program.on('--help', () => {
console.log('Issues and PRs welcome at https://github.com/kommander/aden');
});
/* eslint-enable */

program.parse(process.argv);

const logOptions = {
silent: program.silent || false,
Expand Down

0 comments on commit c613c92

Please sign in to comment.