diff --git a/src/args.ts b/src/args.ts index 40d56e8..51aef18 100644 --- a/src/args.ts +++ b/src/args.ts @@ -8,6 +8,7 @@ export interface IArg { parse?: ParseFn default?: T | (() => T) options?: string[] + stopParsing?: boolean } export interface ArgBase { @@ -18,6 +19,7 @@ export interface ArgBase { default?: T | (() => T) input?: string options?: string[] + stopParsing?: boolean } export type RequiredArg = ArgBase & { diff --git a/src/parse.ts b/src/parse.ts index 06a475f..504a8c0 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -140,6 +140,10 @@ export class Parser