Skip to content

Commit

Permalink
the spread operator doesn't work with getters so we have to manually …
Browse files Browse the repository at this point in the history
…add it here (same for args) (#513)
  • Loading branch information
xlmnxp committed Oct 3, 2022
1 parent c941846 commit 7362812
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export default abstract class Command {
const opts = {context: this, ...options}
// the spread operator doesn't work with getters so we have to manually add it here
opts.flags = options?.flags
opts.args = options?.args
return Parser.parse(argv, opts)
}

Expand Down

0 comments on commit 7362812

Please sign in to comment.