soenkehahn / getopt-generics

Create command line interfaces with ease
Other
41 stars 3 forks source link

Remove `Generics.Console.GetOpt.Generics` [breaking change] #52

Closed soenkehahn closed 8 years ago

soenkehahn commented 9 years ago

I'm thinking of removing Generics.Console.GetOpt.Generics althogether. And getArguments too. That would make WithCli.withCli the only interface (and withCliModified), but those are more powerful and I think we should only have one way. This is quite a breaking change, that's why I'm asking whether there's any objections.

(The name getopt-generics seems a bit arbitrary then, but, well, one step at a time.)

cc: @sol @tuleism @proger @qoelet @dmjio @phunehehe

phunehehe commented 9 years ago

This will probably break some stuff I wrote but those aren't very important and having one way is something to strive for anyway. No objection from me.

sol commented 9 years ago

I recently imagined a use case where it would be useful and I started to appreciate your initial approach. But (1) I didn't try anything (2) I guess it's always possible to work around with withArgs (3) if you are confident about the changes, go for it.

soenkehahn commented 9 years ago

@sol: What aspect of the initial approach are you talking about? That it wasn't a with...-style type signature? Or that we had a pure variant of the interface?

I hoped that everything that was possible with getArguments is still doable with withCli, except for the pure interface (that I intend to add back in).

dmjio commented 9 years ago

@soenkehahn, this is fine with me.

soenkehahn commented 8 years ago

Released as 0.13.