Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cmd.alias to create aliases of commands #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kit-ty-kate
Copy link
Contributor

I'm currently trying to port opam to use the 1.1 API and this would be incredibly useful to have (otherwise we need to carry the old (info, term) tuple around like the old API and it's not really pretty)

@dbuenzli
Copy link
Owner

dbuenzli commented Sep 1, 2022

If that works sufficiently well it doesn't feel egregious.

Another slight annoyance is to keep a term when you have it both a subcommand and as the default command but I don't have a solution for that (you'd like 'a Cmd.t -> 'a Term.t but the datastructure is gone).

@kit-ty-kate
Copy link
Contributor Author

(you'd like 'a Cmd.t -> 'a Term.t but the datastructure is gone).

yeah that's what i looked for first but then i saw the new Cmd.t data structure and realized it wasn't possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants