Skip to content

Fix duplicate "(default: 3)" in --max-concurrent-downloads help text#1725

Merged
katiewasnothere merged 1 commit into
apple:mainfrom
CharlieTLe:fix-duplicate-default-in-help
Jun 16, 2026
Merged

Fix duplicate "(default: 3)" in --max-concurrent-downloads help text#1725
katiewasnothere merged 1 commit into
apple:mainfrom
CharlieTLe:fix-duplicate-default-in-help

Conversation

@CharlieTLe

Copy link
Copy Markdown
Contributor

Remove manually specified default value from help string since ArgumentParser already appends it automatically from the property's default value.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Running container machine create -h displays "(default: 3)" twice for the --max-concurrent-downloads option. This is because the help string manually includes "(default: 3)" while ArgumentParser also automatically appends the default value from the property initializer.

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

Remove manually specified default value from help string since
ArgumentParser already appends it automatically from the property's
default value.

Signed-off-by: Charlie Le <charlie_le@apple.com>
@CharlieTLe CharlieTLe force-pushed the fix-duplicate-default-in-help branch from fe6ebd0 to ac2ed21 Compare June 14, 2026 22:27
@github-actions

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 33.23%
Integration 21.14%
Combined 53.55%

@katiewasnothere katiewasnothere merged commit b34cf39 into apple:main Jun 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants