The current output of bartib help start makes it seem like the project and the description are optional, but they aren't. If you try to run bartib start -d "Description", bartib replies with a panic. I had to go to the source code to understand what was happening.
❯ bartib start -d "Description"
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/italo/.cargo/registry/src/github.com-1ecc6299db9ec823/bartib-1.0.0/src/main.rs:207:58
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
You can fix this by marking the arguments as required on clap, or at least print a nice message explaining the problem.
The current output of
bartib help start
makes it seem like the project and the description are optional, but they aren't. If you try to runbartib start -d "Description"
,bartib
replies with a panic. I had to go to the source code to understand what was happening.You can fix this by marking the arguments as required on clap, or at least print a nice message explaining the problem.