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

Consider using an external argument parser #97

Open
oSoMoN opened this issue Sep 30, 2024 · 0 comments
Open

Consider using an external argument parser #97

oSoMoN opened this issue Sep 30, 2024 · 0 comments

Comments

@oSoMoN
Copy link
Collaborator

oSoMoN commented Sep 30, 2024

Argument parsing in the diff command (and in the WIP cmp command) is implemented manually. The rationale for not using a general-purpose parser like clap is that it does not offer the flexibility we need to replicate the GNU diffutils arguments. We'd lose in compatibility what we would gain in code simplicity.

While researching how it's done in uutils/coreutils, I came across uutils/coreutils#4254, which looks especially relevant. Perhaps we should consider giving uutils-args a test run to understand if it fits the needs of the diffutils applications, and provide constructive feedback and contributions in case it doesn't.

There are currently only two CLI applications (out of a total of 4) to migrate, so the advantage over uutils/coreutils is that the effort would be rather limited.

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

No branches or pull requests

1 participant