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

Move CompressionType from library to CLI #19

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

cadmic
Copy link
Contributor

@cadmic cadmic commented Jun 1, 2024

CompressionType::compress doesn't really fit with gzip compression because there's no way to pass compression level or small_mem arguments. I think it really belongs in the CLI, since there we can pass extra command-line flags as needed (--level and --small-mem for gzip) and use clap's argument parsing for enum values. It's not exposed in the C or Python bindings either.

(I also made the CLI a bit more UNIX-y by printing to stderr and exiting with a non-zero code on error)

@AngheloAlf AngheloAlf merged commit c1a2098 into decompals:main Jun 3, 2024
27 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.

2 participants