Skip to content

Commit

Permalink
feat(args): add Args#finished (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeroen Claassens <support@favware.tech>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
  • Loading branch information
3 people authored Jan 3, 2021
1 parent 04931bc commit 36e0a1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/utils/Args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,13 @@ export class Args {
if (this.states.length !== 0) this.parser.restore(this.states.pop()!);
}

/**
* Whether all arguments have been consumed.
*/
public get finished() {
return this.parser.finished;
}

/**
* Resolves an argument.
* @param arg The argument name or [[IArgument]] instance.
Expand Down

0 comments on commit 36e0a1f

Please sign in to comment.