getargs-derive 0.1.0

Clap-style #[derive] command-line argument parser for no_std and embedded Rust: zero allocation, compile-time help, subcommands. Built on getargs.
Documentation
use getargs_derive::{GetArgs, Subcommand};

#[derive(Subcommand)]
enum Commands {
    Run {
        #[arg(short, long)]
        verbose: bool,
    },
}

#[derive(GetArgs)]
struct Cli {
    #[arg(short, long, global = true)]
    verbose: bool,
    #[arg(long = "help-me", short = 'x', global)]
    help_me: bool,
    #[command(subcommand)]
    command: Commands,
}

#[derive(GetArgs)]
struct Inner {
    #[command(subcommand)]
    command: Commands,
}

#[derive(GetArgs)]
struct Outer {
    #[command(flatten)]
    inner: Inner,
}

fn main() {}