Skip to content

Commit

Permalink
fix: -a option was ingored
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Mar 9, 2024
1 parent 168f763 commit a4aef15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ args.banner === undefined &&

const updateReadme = args["update-readme"] !== undefined;

const sourceFile =
args.source === defaultOptions.sourceFile ? args.action : args.source;

const options = {
sourceFile: args.source ?? args.action,
sourceFile: sourceFile,

Check failure on line 70 in src/cli.ts

View workflow job for this annotation

GitHub Actions / build (20)

Expected property shorthand
tocLevel: args["toc-level"],
updateReadme,
readmeFile:
Expand Down

0 comments on commit a4aef15

Please sign in to comment.