Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threw away the invented wheel and used clap for command line parsing #7

Merged
merged 1 commit into from Dec 30, 2023

Conversation

garikello3d
Copy link
Owner

interestingly that adding clap increases the binary size from 690K to ~1.1 Mb.

// CC @waynr

@waynr
Copy link
Contributor

waynr commented Dec 29, 2023

Clap may not be the best if you're aiming for minimal binary size. clap-rs/clap#1365 mentions https://docs.rs/argh/latest/argh/ as an alternative, which describes itself as:

Derive-based argument parsing optimized for code size and

Since it offers a similar derive-based parsing of arguments to what clap offers, you might be able to convert this PR pretty easily.

@garikello3d garikello3d merged commit 62f7a44 into main Dec 30, 2023
1 check passed
@garikello3d garikello3d deleted the use-clap branch December 30, 2023 14:43
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.

None yet

2 participants