Skip to content

Refactor argument parsing using newer clap derive#52

Merged
slp merged 7 commits into
libkrun:mainfrom
mtjhrc:refactor-clap
Nov 29, 2023
Merged

Refactor argument parsing using newer clap derive#52
slp merged 7 commits into
libkrun:mainfrom
mtjhrc:refactor-clap

Conversation

@mtjhrc
Copy link
Copy Markdown
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
Signed-off-by: Matej Hrica <mhrica@redhat.com>
This seems to catch more problems, such as the u8/i8 mismatch on
aarch64 platforms.

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

Signed-off-by: Matej Hrica <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
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 <mhrica@redhat.com>
Signed-off-by: Matej Hrica <mhrica@redhat.com>
@mtjhrc mtjhrc requested a review from slp November 2, 2023 18:38
Copy link
Copy Markdown
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 libkrun:main Nov 29, 2023
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