Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 37bbd1d

Browse files
author
Jeff Dickey
committed
remove debug statements
1 parent 2d8bd54 commit 37bbd1d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/commands/duration.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ export default class extends DurationMixin(Command) {
88
static command = 'duration'
99
static description = 'this is an example command showing duration parsing'
1010

11-
static flags = [
12-
{name: 'foo'}
13-
]
14-
1511
run () {
1612
this.log(`duration: ${this.duration}`)
1713
}

src/mixins/duration.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ declare class App extends Command {
1515

1616
export default function <T: Class<Command>> (Base: T): $Shape<Class<App>> {
1717
return class DurationMixin extends Base {
18-
static get flags (): Flag[] { return this._flags.concat([FLAG]) }
18+
static get flags (): Flag[] { return super.flags.concat([FLAG]) }
1919
static set flags (flags: Flag[]) { this._flags = flags }
2020

2121
get duration (): Date {
22-
this.inspect(this.constructor.flags)
23-
2422
// this is a little gross but I think needed to cast it to a string
2523
let duration = (((this.flags.duration): any): string)
2624
return new Date(duration)

0 commit comments

Comments
 (0)