joeyh

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.

joeyh at 2015-07-17T16:14:14Z

jasonriedy@fmrl.me likes this.

I fall for the gpg one like every day.

johns at 2015-07-18T02:49:42Z