thunder icon indicating copy to clipboard operation
thunder copied to clipboard

⚡ Zero-boilerplate commandline argument parsing in Rust

Results 10 thunder issues
Sort by recently updated
recently updated
newest added

Hi, check this code out: ``` use thunder::thunderclap; struct MyApp; #[thunderclap] impl MyApp { fn hello(name: &str) -> Result { println!("Hello {}", name); } } fn main() { MyApp::hello("kat"); }...

wontfix

Consider this simple snippet: ```rust use thunder; use clap; use thunder::thunderclap; struct MyApp; #[thunderclap(param: String: "A global var")] impl MyApp { /// Scan a directory fn scan(source_dir: String) { println!("param={}",...

bug

The [Loki example](https://github.com/rust-clique/thunder/blob/master/examples/loki.rs) does not compile. ``` $ cargo run help Compiling test-thunder v0.1.0 (/home/xxx/tmp/test-thunder) error: custom attribute panicked --> src/main.rs:9:1 | 9 | #[thunderclap(example: Option: "Error, here", another_example: String:...

bug

Hello! After talking about thunder with @spacekookie, she told me about a effort to rewrite thunder to have a better usability and code. Thinking about that, I thought about proposing...

enhancement
question

For example, it's not clear how to run app with more than one parameter: ```rust /// App #[thunderclap] impl App { /// run fn run(token: &'a str, listening_address: &'b str)...

bug

> `#[thunderclap(drunk: bool: "Thor drinks a lot", hammers: Option: "This isn't a joke about being drunk")]` > > hmmmm > > `#[thunderclap(drunk: bool = "Thor drinks a lot", hammers: Option...

enhancement

When i didn't provide a valid boolean, i got a not so nice error message: ``` thor bla aged thread 'main' panicked at 'Failed to parse value. Double check!: ParseBoolError...

enhancement

Actual functionality tbd

enhancement
question

It could enable more features and make the code base easier to work with and contribute to

enhancement