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

Refactor CLI Enums to use clap::ValueEnum #25

Merged
merged 2 commits into from
Apr 21, 2024
Merged

Conversation

tareknaser
Copy link
Collaborator

The change automatically prints the possible values to the user in the help message
This PR includes changes from ARK-Builders/ark-cli#25

ark-cli/USAGE.md Outdated Show resolved Hide resolved
Instead of explicitly using `--<FLAG>=true`, use `--flag`

Signed-off-by: Tarek <[email protected]>
Copy link

Benchmark for 4eb9b5d

Click to view benchmark
Test Base PR %
../test-assets/lena.jpg/compute_bytes 13.4±0.08µs 13.4±0.11µs 0.00%
../test-assets/test.pdf/compute_bytes 107.3±1.14µs 108.2±0.88µs +0.84%
compute_bytes_large/compute_bytes 136.3±0.95µs 141.0±2.00µs +3.45%
compute_bytes_medium/compute_bytes 26.9±0.66µs 27.0±0.82µs +0.37%
compute_bytes_small/compute_bytes 128.3±2.36ns 128.1±2.53ns -0.16%
index_build/index_build/../test-assets/ 160.1±0.86µs 158.1±1.03µs -1.25%

@tareknaser tareknaser requested a review from kirillt April 15, 2024 17:01
@tareknaser tareknaser merged commit 9a2240d into main Apr 21, 2024
2 checks passed
@tareknaser tareknaser deleted the entry_value_enum branch April 21, 2024 13:25
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