Title: Consider using an external argument parser · Issue #97 · uutils/diffutils · GitHub
Open Graph Title: Consider using an external argument parser · Issue #97 · uutils/diffutils
X Title: Consider using an external argument parser · Issue #97 · uutils/diffutils
Description: 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 ar...
Open Graph Description: 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 w...
X Description: 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 w...
Opengraph URL: https://github.com/uutils/diffutils/issues/97
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider using an external argument parser","articleBody":"Argument parsing in the `diff` command (and in [the WIP `cmp` command](https://github.com/uutils/diffutils/pull/88)) is implemented manually. The rationale for not using a general-purpose parser like [clap](https://docs.rs/clap/latest/clap/index.html) 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.\r\n\r\nWhile 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](https://github.com/tertsdiepraam/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.\r\n\r\nThere 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.","author":{"url":"https://github.com/oSoMoN","@type":"Person","name":"oSoMoN"},"datePublished":"2024-09-30T15:28:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/97/diffutils/issues/97"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:13fe974e-2497-be76-2828-9e458d548873 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B91A:89EF1:B3B3C5:F30321:6A4D766E |
| html-safe-nonce | ca3d422f86556d4e980360dc74a9cc7d7d43ca9c73076b8f51aa05fffee840d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTFBOjg5RUYxOkIzQjNDNTpGMzAzMjE6NkE0RDc2NkUiLCJ2aXNpdG9yX2lkIjoiNTEyNTU3MjkyODk5MzY2NTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b2143cdd832019865b1d643a01ccb710feec91a14adc4560cd92c7097ef0283a |
| hovercard-subject-tag | issue:2557009316 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/uutils/diffutils/97/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f54eb03c19e0e8433d6c0ff2bfb9d6a7e5b954b10032549cff382b811c6c496f/uutils/diffutils/issues/97 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f54eb03c19e0e8433d6c0ff2bfb9d6a7e5b954b10032549cff382b811c6c496f/uutils/diffutils/issues/97 |
| og:image:alt | 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 w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oSoMoN |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-preview |
| go-import | github.com/uutils/diffutils git https://github.com/uutils/diffutils.git |
| octolytics-dimension-user_id | 5148717 |
| octolytics-dimension-user_login | uutils |
| octolytics-dimension-repository_id | 341787720 |
| octolytics-dimension-repository_nwo | uutils/diffutils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 341787720 |
| octolytics-dimension-repository_network_root_nwo | uutils/diffutils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width