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).
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 likeCore.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