stratis-storage / stratisd

Easy to use local storage management for Linux.
https://stratis-storage.github.io
Mozilla Public License 2.0
793 stars 56 forks source link

For stratis-min, failure to scan a UUID when a UUID is expected should really be a parsing error #3604

Closed mulkieran closed 3 months ago

mulkieran commented 3 months ago

There is no way that I can figure out how to do this. clap has conditional parsing for very specific things, like required_unless_present. What I need is a value_parser_if function but that doesn't exist, and this problem, error code 1 instead of 2, really isn't that important.