Crate clap_sort

Crate clap_sort 

Source
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.