Skip to content

tool: Separate argument parsing#486

Merged
Ivan-Velickovic merged 1 commit intoseL4:mainfrom
au-ts:viper/argparse
May 5, 2026
Merged

tool: Separate argument parsing#486
Ivan-Velickovic merged 1 commit intoseL4:mainfrom
au-ts:viper/argparse

Conversation

@zaklogician
Copy link
Copy Markdown
Contributor

As part of a series of patches which upstream Viper export to Microkit, we separate argument parsing from main.rs into argparse.rs.

The code was refactored a bit to remove manual index manipulation. The user interface remains compatible/identical to the previous implementation.

We separate argument parsing from main.rs.

This will help refactor main, which in turn will help
implementing Viper export.

Signed-off-by: Zoltan A. Kocsis <11808286+zaklogician@users.noreply.github.com>
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
@Ivan-Velickovic Ivan-Velickovic merged commit b8f9768 into seL4:main May 5, 2026
10 of 11 checks passed
Comment thread tool/microkit/src/main.rs
Comment on lines +10 to +11
use microkit_tool::argparse;
use microkit_tool::argparse::{Args, ArgsError, RequestedImageType};
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

One of these is redundant?

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.

3 participants