Expand description
§clap-sort
A library to validate that clap subcommands are sorted alphabetically.
This crate provides functionality to validate that clap Subcommand enums
have their variants sorted alphabetically by their CLI names at runtime.
Functions§
- assert_
sorted - Validates that subcommands are sorted alphabetically.
- is_
sorted - Checks if subcommands are sorted, returning a Result instead of panicking.