clap_schema 0.2.1

Deprecated in favor of `argx`. JSON Schema generation for Clap with typed Rust results.
Documentation
//! Compile-fail fixture for a command without a handler contract.

use clap::{Args, Parser, Subcommand};
use clap_schema::{CliSchema, CommandSchema};

#[derive(Parser, CliSchema)]
struct Cli {
    #[command(subcommand)]
    command: Commands,
}

#[derive(Subcommand, CommandSchema)]
enum Commands {
    Run(RunArgs),
}

#[derive(Args)]
struct RunArgs {}
fn main() {
    let _ = Cli::schema();
}