Skip to content

Commit

Permalink
fix: parse function forcing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mrozio13pl committed Nov 9, 2023
1 parent 5204c81 commit 43403df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Cli extends Command {
* @param {string | string[]} args Arguments to parse.
* @param {OfiOptions} options Parser options (they will be also used for every single command).
*/
parse(args: string | string[] = process.argv.slice(2), options: OfiOptions): ParsedArguments | void {
parse(args: string | string[] = process.argv.slice(2), options: OfiOptions = {}): ParsedArguments | void {
options = { camelize: true, 'populate--': true, ...options };

const _options = options; // this object will not include '--version' flag and will be passed to other commands
Expand Down

0 comments on commit 43403df

Please sign in to comment.