[Good first issue] 修复评测 CLI 在 --flag=value 后跳过参数
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bun, typescript
- Domain
- cli
Research direction
Start with parseFlags in scripts/eval/run.ts (around lines 135-170), where the index advances after consuming an inline --flag=value, and check the duplicate --case handling near lines 258-264. Run bun test scripts/eval/config-chain.test.ts to see the existing CLI argument tests. Done when --flag=value consumes only the current argument, --flag value still consumes two, and the two added regression tests pass.
Written by the indexing model from the issue text.
Description
问题与复现
CLI 识别 --flag=value,但消费内联值后仍会前移参数下标。复验 parseFlags(['--case=fv1-market-001', '--case=fv1-market-002']),只留下第一条用例。parseFlags(['--dataset=trail-agent-v1-zh', '--smoke']) 的 smoke 仍为 false。使用分隔写法 --case <id> 时,两条用例都被保留。
在 Windows 和 Bun 1.4.2 上基于 main 的 579395e 验证。 直接调用参数解析函数即可复现。
验收标准
-
--flag=value只消费当前参数,--flag value消费两项,两种写法可混用。 - 补两条无凭证回归。一条覆盖重复
--case,另一条覆盖带值选项后紧跟--smoke。从bun test scripts/eval/config-chain.test.ts开始。
源码起点
认领前可先说明准备完成的范围,再评论 /claim。参与方式见 #7。
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 37
- Avg merge
- 8h 8m
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ydflow/Trail
-
area:desktop bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:desktop bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
area:desktop bug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
[Security]Unauthenticated WebSocket JSON.parse Without Error Handling Leads to Process TerminationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
nocobase/nocobase#11711 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Y2025: QBI forms print a negative taxable income; Form 8995-A lines 14b/14c check the wrong columnOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
readest/readest#7903 · 1 comment ·
Maintainers usually reply within 1 day