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

[Feature] Migrate to urfave/cli/v2 #138

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jackwrfuller
Copy link
Contributor

@jackwrfuller jackwrfuller commented Jan 13, 2025

This PR investigates upgrading to v2 of urfave cli.

There were two main breaking changes that I noticed.

First, command aliases must now be unique, whereas in v1 they were allowed and the earlier one was overridden. Tests had to be updated to take this into account.

Second, and more seriously, there are issues with v2 and flags occuring after arguments (see urfave/cli#1950 and its eventual fix urfave/cli#1987).

In short, it is no longer possible to do, for example, ahoy main-cmd --help, it must be ahoy --help main-cmd. Apprently this is fixed in v3, but v3 does not yet have a stable release. For the moment, I have updated the tests to deal with this.

On a positive note, I have tested it and v2 does indeed fix #95, so thats good.

We will have to decide if migrating is worth it, noting that there are some issues, but that v1 is not recommended for new development.

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.

Cannot properly trap SIGINT
1 participant