Skip to content

Commit

Permalink
Merge pull request #33 from farfromrefug/storypath
Browse files Browse the repository at this point in the history
chore: config storyPath takes over command line one
  • Loading branch information
jersou authored Oct 8, 2024
2 parents e597338 + cb0235f commit f64b073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/parse_args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function parseArgs(args: string[]) {
const optsFromFile = JSON.parse(
await Deno.readTextFile(opts.configFile),
);
opts = { ...opts, ...optsFromFile, storyPath: opts.storyPath };
opts = { ...opts, storyPath: opts.storyPath, ...optsFromFile };
}

if (opts.customScript) {
Expand Down

0 comments on commit f64b073

Please sign in to comment.