Skip to content

Commit

Permalink
fix: fix error attempting to bind args with no value
Browse files Browse the repository at this point in the history
  • Loading branch information
zajrik committed Mar 31, 2021
1 parent 26c978d commit e05c1d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/argument/CommandArguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ export class CommandArguments
const arg: Argument<any> = this.get(ident);
const boundArg: Argument<any> = this.get(binding.ident);

if (typeof arg.value === 'undefined')
continue;

if (typeof boundArg.value === 'undefined')
boundArg.value = arg.value;

Expand Down

0 comments on commit e05c1d6

Please sign in to comment.