From 9165aba3a500d5329c867154156321c21afc62a7 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sat, 3 Feb 2018 08:54:08 -0800 Subject: [PATCH] fix: add Flag --- src/command.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/command.ts b/src/command.ts index dded9ff9..45d8bb1a 100644 --- a/src/command.ts +++ b/src/command.ts @@ -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 @@ -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'