evaengine 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/engine.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evaengine",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "EvaEngine for Node.js, a micro service development engine",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/engine.js CHANGED
@@ -175,7 +175,7 @@ export default class EvaEngine {
175
175
  || !{}.hasOwnProperty.call(command, 'getDescription')) {
176
176
  throw new RuntimeException('Command require getSpec and getDescription static method');
177
177
  }
178
- const { argv } = yargs([])
178
+ const { argv } = yargs(process.argv.slice(2))
179
179
  .command(commandName, command.getDescription(), Object.assign({
180
180
  verbose: {
181
181
  alias: 'v',
@@ -492,7 +492,7 @@ export default class EvaEngine {
492
492
  if (!commandName) {
493
493
  this.logger.info('Available commands:');
494
494
  Object.entries(this.commands).forEach(([name, commandClass]) => {
495
- this.logger.info('-', (`${name} `).padEnd(30, '-'), commandClass.getDescription());
495
+ this.logger.info(`- ${(`${name} `).padEnd(30, '-')} ${commandClass.getDescription()}`);
496
496
  });
497
497
  return;
498
498
  }