chshersh / zbg

✨ Zero Bullshit Git
Mozilla Public License 2.0
183 stars 11 forks source link

Support both -f and --force flags #13

Closed chshersh closed 1 year ago

chshersh commented 1 year ago

Currently, zbg supports only the -f flag for forceful actions:

https://github.com/chshersh/zbg/blob/7b448631f76e014f70347dcd88fa1514e9d52657/lib/cli.ml#L17

However, it would be nice to support --force as well. Unfortunately, it looks like Core.Command doesn't support specifying multiple aliases for the same flag (or maybe I just haven't found it). But it would be nice to have it! (ideally, without rewriting the CLI parser to a different library).

https://ocaml.org/p/core/v0.12.3/doc/Core/Command/Param/index.html

chshersh commented 1 year ago

It was suggested to use the ?aliases argument of the flag function (docs)

chshersh commented 1 year ago

Fixed by: