Skip to content

Commit

Permalink
fix: memorialize Allen, through AllenJS
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthHater committed Feb 26, 2020
1 parent 375e389 commit 592fb93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Application/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class Application {
readonly devDependency: boolean = false,
readonly silent: boolean = false,
readonly artie: boolean = false,
readonly allen: boolean = false,
) {
const npmList = new NpmList(devDependency);
const bower = new Bower(devDependency);
Expand Down Expand Up @@ -100,6 +101,8 @@ export class Application {
return;
} else if (this.artie) {
this.doPrintHeader('ArtieJS', 'Ghost');
} else if (this.allen) {
this.doPrintHeader('AllenJS', 'Ghost');
} else {
this.doPrintHeader();
}
Expand Down
11 changes: 9 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ let argv = yargs
description: 'Artie',
demandOption: false,
},
allen: {
alias: 'w',
type: 'boolean',
description: 'Allen',
demandOption: false,
},
dev: {
alias: 'd',
type: 'boolean',
Expand Down Expand Up @@ -170,6 +176,7 @@ if (argv) {
} else if (argv._[0] == 'iq' || argv._[0] == 'ossi') {
let silence = argv.json || argv.quiet || argv.xml ? true : false;
let artie = argv.artie ? true : false;
let allen = argv.allen ? true : false;

if (argv.server) {
argv.server = normalizeHostAddress(argv.server as string);
Expand All @@ -178,9 +185,9 @@ if (argv) {
let app: Application;
try {
if (argv.dev) {
app = new Application(argv.dev as boolean, silence, artie);
app = new Application(argv.dev as boolean, silence, artie, allen);
} else {
app = new Application(false, silence, artie);
app = new Application(false, silence, artie, allen);
}
app.startApplication(argv);
} catch (error) {
Expand Down

0 comments on commit 592fb93

Please sign in to comment.