getopt-generics icon indicating copy to clipboard operation
getopt-generics copied to clipboard

Implement commands

Open soenkehahn opened this issue 9 years ago • 2 comments

It should be possible to implement commands using sumtypes.

data GitOptions
  = Push {
    force :: Bool
  }
  | Fetch {
    branch :: Maybe String
  }

It's a bit tricky to get global options right in that case, but I think it should be doable.

soenkehahn avatar Apr 15 '15 09:04 soenkehahn

:+1: looking forward to it

proger avatar Jul 30 '15 11:07 proger

me too :)

fisx avatar Jul 15 '19 10:07 fisx