diff --git a/src/option_handlers/handleFilesOption.js b/src/option_handlers/handleFilesOption.js index 7af8a86..2affaa4 100644 --- a/src/option_handlers/handleFilesOption.js +++ b/src/option_handlers/handleFilesOption.js @@ -34,6 +34,8 @@ export default async function handleFilesOption(files, options) { } } else if (options.prompt) { prompt = options.prompt || defaultPrompt; + } else { + prompt = defaultPrompt; } const model = options.model || toml?.preferences.MODEL || process.env.MODEL || 'gemini-1.5-flash'; diff --git a/src/option_handlers/handleNoFilesOption.js b/src/option_handlers/handleNoFilesOption.js index 75c2c48..1fcc4f1 100644 --- a/src/option_handlers/handleNoFilesOption.js +++ b/src/option_handlers/handleNoFilesOption.js @@ -30,6 +30,8 @@ export default async function handleNoFilesOption(options) { } } else if (options.prompt) { prompt = options.prompt || defaultPrompt; + } else { + prompt = defaultPrompt; } const model = options.model || toml?.preferences.MODEL || process.env.MODEL || 'gemini-1.5-flash';