Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: add Flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 3, 2018
1 parent de7147b commit 9165aba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface Command {
usage?: string | string[]
examples?: string[]
type?: string
flags: {[name: string]: Command.Flag.Boolean | Command.Flag.Option}
flags: {[name: string]: Command.Flag}
args: {
name: string
description?: string
Expand All @@ -24,6 +24,8 @@ export interface Command {
}

export namespace Command {
export type Flag = Flag.Boolean | Flag.Option

export namespace Flag {
export interface Boolean {
type: 'boolean'
Expand Down

0 comments on commit 9165aba

Please sign in to comment.