Skip to content

🎥 Make videos programmatically with React

fix config is given higher priority than cli flags

Shankhadeep Deydce690d9eac8
diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsx
index 1c192a17ef..1f205d2d1d 100644
--- a/packages/cli/src/render.tsx
+++ b/packages/cli/src/render.tsx
@@ -58,14 +58,14 @@ export const render = async () => {
const file = parsedCli._[1];
const fullPath = path.join(process.cwd(), file);
- parseCommandLine();
const appliedName = loadConfig();
if (appliedName) {
Log.verbose(`Applied configuration from ${appliedName}.`);
} else {
Log.verbose('No config file loaded.');
}
-
+
+ parseCommandLine();
const {
codec,
proResProfile,