Title: Feat sdiff inital with parser by GunterSchmidt · Pull Request #193 · uutils/diffutils · GitHub
Open Graph Title: Feat sdiff inital with parser by GunterSchmidt · Pull Request #193 · uutils/diffutils
X Title: Feat sdiff inital with parser by GunterSchmidt · Pull Request #193 · uutils/diffutils
Description: Add the sdiff utility in a basic version, see issue #16. The PR replaces the PRs #159 and #188 as their content is merged in here. Also a new parser is introduced, as I found too many issues when working with cmp. feat: Introducing a new parser for all utils This is a new fully working parser for the arg options. The parser is written generically so it can be used in all diffutils tools. The first implementation is done with sdiff. I already have a revised version for cmp as well. I checked and discarded clap as tool, as the requirements are very individual and would require extensive tweaking of the clap functionality. Features: Allows options to be abbreviated, e.g. --wi instead of --width Allows input like in GNU utils, e.g. the following are all identical diff --ignore-case --minimal --width=50 file_a file_b diff --ignore-case --minimal --width 50 file_a file_b diff -i -d -w 50 file_a file_b diff -id -w50 file_a file_b diff -idw50 file_a file_b A number parser is available, which parses option arguments with optional byte units, e.g. =1024 or =1024KiB Default handling for --version and --help Returns the params or an Error Enum, which makes it library friendly. Contains error handling for the typical parsing errors: -- missing and extra operands -- invalid, ambiguous or conflicting options -- missing or not allowed option arguments Provides error text functions, e.g. add executable and 'Try --help' to message.
Open Graph Description: Add the sdiff utility in a basic version, see issue #16. The PR replaces the PRs #159 and #188 as their content is merged in here. Also a new parser is introduced, as I found too many issues when w...
X Description: Add the sdiff utility in a basic version, see issue #16. The PR replaces the PRs #159 and #188 as their content is merged in here. Also a new parser is introduced, as I found too many issues when w...
Opengraph URL: https://github.com/uutils/diffutils/pull/193
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ebaa8b2a-6bd0-4ea8-c08e-df955e60690e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9CCA:3E6EAA:96E0D4:D44ACA:6A4E80A5 |
| html-safe-nonce | 7c648377e4d8a45ac09a3a823e9021c396212259da5fcc4230c7fbd536ded8ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0NBOjNFNkVBQTo5NkUwRDQ6RDQ0QUNBOjZBNEU4MEE1IiwidmlzaXRvcl9pZCI6IjE0MDQzODg3NzExNDUzMzQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9ea03ad0bb29edc09725b4b5d7ede96cc768ea589e188c7da56f3fd40dba4e6b |
| hovercard-subject-tag | pull_request:3372692288 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/uutils/diffutils/pull/193/files |
| twitter:image | https://avatars.githubusercontent.com/u/98484717?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/98484717?s=400&v=4 |
| og:image:alt | Add the sdiff utility in a basic version, see issue #16. The PR replaces the PRs #159 and #188 as their content is merged in here. Also a new parser is introduced, as I found too many issues when w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width