Skip to content

Commit

Permalink
fix bypass questions
Browse files Browse the repository at this point in the history
  • Loading branch information
sharjeelyunus committed Oct 15, 2024
1 parent 196c054 commit 07cb967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion starter/dart_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ const selectModules = async () => {
const main = async () => {
try {
const [firstArg, ...restArgs] = process.argv.slice(2);
const bypass = restArgs.includes('bypass-questions');
const bypassArg = restArgs.find(arg => arg.startsWith('bypass-questions='));
const bypass = bypassArg ? bypassArg.split('=')[1] === 'true' : false;

if (firstArg === 'enable') {
const { scripts: scriptsToRun, argsArray } = parseArguments(restArgs);
Expand Down

0 comments on commit 07cb967

Please sign in to comment.