Sample finish_uploading_large_file accepts 5 arguments but usage allows 6

未关闭
#250 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

@MatheoPaiva 已经在做这个了。

开始于 2026年11月15日。

  • #259 来自 @MatheoPaiva —— 未关闭

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
java
领域
cli

调研方向

The mismatch sits in samples/src/main/java/com/backblaze/b2/sample/B2.java: the usage text near line 64 for finish_uploading_large_file and the checkArgCount(args, 3, 5) call near line 565. Count the tokens in the usage line and compare them with the maximum argument count. Work is already under way in open pull request #259, so check that before starting. Done means the accepted maximum matches the usage line.

由索引模型根据 Issue 内容生成。

描述

What happens

The usage text for finish_uploading_large_file is [--noProgress] [--threads N] <bucketName> <largeFileId> <localFileName>, which is up to 6 tokens, but the command calls checkArgCount(args, 3, 5). Using both options together is refused with a usage error.

Where

samples/src/main/java/com/backblaze/b2/sample/B2.java:565 (checkArgCount(args, 3, 5)) and :64 (usage text).

Why it matters

Impact: Docs and messages (sample argument count does not match its usage), loud. Severity: Low, because it only affects a sample command, the error is clear, and nothing is harmed.

How to check

Found by reading the code, not reproduced. Count the tokens in the usage line at line 64 and compare with the maximum at line 565. Changing the maximum to 6 would match.

Version

Seen at v6.5.0. Present on the default branch: present.

主要语言
Java
星标
103
派生
23
平均合并
5 天 8 小时
30 天内合并 PR
3

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Backblaze/b2-sdk-java 的其他 Issue

查看 Backblaze/b2-sdk-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。