Skip to content
Permalink
Browse files

Add more variations of the same CLI options

  • Loading branch information...
thiagodp committed Jun 13, 2018
1 parent 8218ec5 commit 3dcd7c22af8c5c98c9824e6432ce8a5ca3fdd8c9
Showing with 4 additions and 4 deletions.
  1. +1 −1 main.ts
  2. +3 −3 modules/app/Options.ts
@@ -2,7 +2,7 @@ import { AppController } from "./modules/app/AppController";

process.on( 'uncaughtException', console.error );

process.on( 'SIGINT', () => {
process.on( 'SIGINT', () => { // e.g., Terminate execution with Ctrl + C
console.log( '\nAborted. Bye!' );
process.exit( 1 );
} );
@@ -407,9 +407,9 @@ export class Options {

// compare to false is important because meow transforms no-xxx to xxx === false
const noSpec: boolean = false === obj.spec || false === obj.specification;
const noTestCase: boolean = false === obj.testCase || false === obj.testCases;
const noScript: boolean = false === obj.script || false === obj.scripts;
const noRun: boolean = false === obj.run;
const noTestCase: boolean = false === obj.testCase || false === obj.testCases || false === obj.testcase;
const noScript: boolean = false === obj.script || false === obj.scripts || false === obj.testScript || false == obj.testscript;
const noRun: boolean = false === obj.run || false === obj.execute;
const noResult: boolean = false === obj.result || false === obj.results;

// Adjust flags

0 comments on commit 3dcd7c2

Please sign in to comment.
You can’t perform that action at this time.