feather-rs / lieutenant

Command dispatcher for Rust based on Mojang's Brigadier
Apache License 2.0
2 stars 4 forks source link

Args are present in the generated scope #7

Closed Defman closed 4 years ago

Defman commented 4 years ago
#[command(usage = "test <x>")]
async fn test(ctx: &mut State, x: i32) -> Result<(), Error> {
    if args == "" {
        // args are in the scope
    }
    Ok(())
};