KoffeinFlummi / armake2

Successor to armake written in Rust
GNU General Public License v2.0
50 stars 17 forks source link

Restructure: clap #52

Open BrettMayson opened 5 years ago

BrettMayson commented 5 years ago

Continued from https://github.com/KoffeinFlummi/armake2/pull/50#issuecomment-518368417

KoffeinFlummi:

I dislike the move to clap; or rather the move away from docopt. I've yet to find a command line parser (in any language) that is as elegant and out-of-your-way as docopt is, and I think I would need to be convinced to abandon it.

The decision to move to clap was for greater control.

  1. It allows global flags like --verbose without cluttering the usage like it would with docopt.
  2. It also allows optional commands. With signing becoming a feature the signing related commands may not always be present. This is something that would be complicated using docopt

I think docopt is great at what it does, but it is better at serving small applications with simple interfaces. This project needs the better control that clap offers