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 argument parsing using newer clap derive #52

Merged
merged 7 commits into from
Nov 29, 2023

Conversation

mtjhrc
Copy link
Collaborator

@mtjhrc mtjhrc commented Oct 19, 2023

Seem like closes issue/suggestion #43, but not sure what was meant by it.

I found some not implemented arguments, for now I left it the way it was before and left TODOs.

@mtjhrc mtjhrc changed the title Refactor clap Refactor argument parsing using newer clap derive Oct 19, 2023
@mtjhrc mtjhrc force-pushed the refactor-clap branch 5 times, most recently from 8bfe055 to d959d0d Compare October 25, 2023 11:42
@mtjhrc mtjhrc marked this pull request as ready for review October 31, 2023 12:25
This seems to catch more problems, such as the u8/i8 mismatch on
aarch64 platforms.

Signed-off-by: Matej Hrica <[email protected]>
We need #[allow(unused_mut)], to disable warnings on other targets.

Signed-off-by: Matej Hrica <[email protected]>
You could have a trait and uniform interface for the run method,
but it isn't necessary for now. It also allows passing more arguments
from main.

Signed-off-by: Matej Hrica <[email protected]>
Signed-off-by: Matej Hrica <[email protected]>
@mtjhrc mtjhrc requested a review from slp November 2, 2023 18:38
Copy link
Collaborator

@slp slp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much needed improvement, thanks!

@slp slp merged commit 5494d84 into containers:main Nov 29, 2023
2 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