Misleading message for --dry-run with --replace
还没有人认领这个 Issue。
评估
调研方向
从 CommandLineOptionsParser.java 第 68 行附近开始,在 --dry-run(或 -n)与 --replace、-replace、-r 或 -i 组合使用时复现该消息。检查相关帮助文本,并确定应修正面向用户显示的选项名称,还是应修正报告的不兼容性。完成标准是该命令不再引用不可用的 --in-place 选项,且帮助文本与受支持的 flags 一致。
由索引模型根据 Issue 内容生成。
描述
If you specify both --dry-run (or -n) and --replace (or -replace, -r or -i) you get a message stating "cannot use --dry-run and --in-place at the same time".
The problem is that there is no --in-place option. inPlace is however the internal variable name used for --replace. There's two possible fixes:
- Change the message. This could affect anything which tries to use the message in some kind of script.
- Add the --in-place option at line 68 in CommandLineOptionsParser.java and related help text. This should not affect anything else.
- 主要语言
- Java
- 星标
- 6.2k
- 派生
- 936
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/google-java-format 的其他 Issue
-
难度 5/5 一周以上 新手友好度 15/100
google/google-java-format#1450 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 55/100
google/google-java-format#1439 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 62/100
google/google-java-format#1436 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 48/100
google/google-java-format#1428 · 3 条评论 ·
-
Eclipse
难度 3/5 1-2 天 新手友好度 55/100
google/google-java-format#1417 ·
查看 google/google-java-format 的全部 Issue
相似的 Issue
-
certification
难度 1/5 1 小时以内 新手友好度 80/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's 未关闭bug ecr
难度 2/5 1-3 小时 新手友好度 75/100
-
Needs: Triage Type: Feature request
难度 2/5 1-3 小时 新手友好度 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 65/100
github/copilot-sdk#2760 ·