Skip to content

Instantly share code, notes, and snippets.

@gugahoa
Last active July 24, 2018 21:47
Show Gist options
  • Save gugahoa/427461c1f02d22da463a659c8a5c3206 to your computer and use it in GitHub Desktop.
Save gugahoa/427461c1f02d22da463a659c8a5c3206 to your computer and use it in GitHub Desktop.
#![feature(use_extern_macros)]
extern crate thunder;
extern crate clap;
use thunder::thunderclap;
struct Wrapper;
#[thunderclap]
impl Wrapper {
/// Say hello
fn hello(name: Option<&str>) {
println!("Hello, {}!", name.unwrap_or("world"));
}
}
fn main() {
Wrapper::start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment