fix(cli): undeprecate --prompt and correct positional query docs#26329
fix(cli): undeprecate --prompt and correct positional query docs#26329
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses documentation inaccuracies and usability concerns regarding the Gemini CLI's interaction modes. By clarifying that positional arguments default to non-interactive execution and removing the deprecation status of the --prompt flag, the changes ensure that users have clear guidance on how to perform non-interactive queries effectively. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
Size Change: -4 B (0%) Total Size: 33.9 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request updates the Gemini CLI documentation and configuration to describe positional arguments as non-interactive. However, the code reviewer correctly points out that this change contradicts the actual implementation, which defaults to interactive mode when a TTY is present. The documentation and configuration should be reverted to maintain consistency with the existing CLI behavior.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…gle-gemini#26329) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…gle-gemini#26329) Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Summary
This PR undeprecates the --prompt (-p) flag and corrects documentation for positional arguments to accurately reflect that they run in non-interactive (headless) mode by default.
Details
GitHub issue #19156 highlighted that positional arguments starting with a hyphen (e.g., gemini "-1+2=?") fail because yargs attempts to parse them as options. While --prompt avoids this, the documentation incorrectly marked it as deprecated, discouraging its use.
Additionally, multiple locations in the documentation incorrectly stated that positional queries (e.g., gemini "query") were interactive by default. This PR fixes those descriptions to match the actual implementation.
Changes:
Related Issues
Fixes #19156
How to Validate
Pre-Merge Checklist