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

stratis-min: Detect bad format unlock method in parser and not at runtime (also for Uuid) #3641

Open
mulkieran opened this issue Jul 5, 2024 · 0 comments

Comments

@mulkieran
Copy link
Member

In theory, we can do this with value_parser() method[1]. In practice, it is very hard to figure out how to use that method with the implementation of UnlockMethod, although in theory there is a macro value_parser which should work. All this is only minimally documented.

There is more or less the same problem for Uuid.

[1] https://docs.rs/clap/latest/clap/struct.Arg.html#method.value_parser

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

No branches or pull requests

1 participant