apple / apple/swift-argument-parser

Including package increases binary size by ~2,7MB

Open
#296 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
3.8k
Forks
411
Avg merge
7d 14h
Merged PRs (30d)
15

Description

Just including the argument parser raises my CLI tool binary size from 250KB to about 3MB

This seems a _bit_ excessive.

**ArgumentParser version:** `main`
**Swift version:** Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28) Target: arm64-apple-darwin20.3.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported size change with a minimal CLI tool using ArgumentParser at version main, on Swift 5.3.2 if possible. Compare the resulting binaries to isolate the source of the increase; done should be a documented explanation and an agreed reduction or determination that the size is expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.