Skip to content

Commit

Permalink
fix: -a option was ingored (#561)
Browse files Browse the repository at this point in the history
* fix: -a option was ingored

* fix: -a option was ingored
  • Loading branch information
npalm committed Mar 9, 2024
1 parent 4d2d307 commit 8dbd40e
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,
tocLevel: args["toc-level"],
updateReadme,
readmeFile:
Expand Down

0 comments on commit 8dbd40e

Please sign in to comment.