orders
joeyh at
Peeve: Programs that can only parse options in certain orders and not in other orders.
I'm looking at you git log foo --stat
, and at you gpg --recv-key foo --keyserver=bar
Hmm, that's another nice thing about optparse-applicative. Applicatives fundamentally don't impose an order of operations (this is what distinguishes them from monads), and so option parsers built using it cannot have this bug.
der.hans, Olivier Mehani, johns, Elena ``of Valhalla'' and 1 others likes this.
Actually, I'm a little wrong about applicatives ordering there. And you could write something order-dependent if you really wanted to.
jasonriedy@fmrl.me likes this.