René's URL Explorer Experiment


Title: How to approach --help implementation · Issue #96 · uutils/diffutils · GitHub

Open Graph Title: How to approach --help implementation · Issue #96 · uutils/diffutils

X Title: How to approach --help implementation · Issue #96 · uutils/diffutils

Description: I am working on the cmp implementation (#88) and would like to have --help output something useful, which I think is important for our version to really replace GNU cmp on a system. We should figure out which way to go here so that we ca...

Open Graph Description: I am working on the cmp implementation (#88) and would like to have --help output something useful, which I think is important for our version to really replace GNU cmp on a system. We should figur...

X Description: I am working on the cmp implementation (#88) and would like to have --help output something useful, which I think is important for our version to really replace GNU cmp on a system. We should figur...

Opengraph URL: https://github.com/uutils/diffutils/issues/96

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to approach --help implementation","articleBody":"I am working on the cmp implementation (https://github.com/uutils/diffutils/pull/88) and would like to have --help output something useful, which I think is important for our version to really replace GNU cmp on a system. We should figure out which way to go here so that we can apply it to the other diffutils tools.\r\n\r\nI believe we have 2 main options:\r\n\r\n1. Basically copy/paste GNU cmp output, with minimal changes\r\n2. Write from scratch\r\n\r\nOption 1 has the benefit of being familiar for people who are used to the GNU tooling, or for those crazy enough to have scripted parsing of this output, for some reason. I suppose the main concern for doing it like this is an argument could be made that the output is copyrighted. This is how I envision it looking (note the different links at the bottom):\r\n\r\n```rust\r\n    print!(\r\n        indoc! {\"\r\n        Usage: {} [OPTION]... FILE1 [FILE2 [SKIP1 [SKIP2]]]\r\n        Compare two files byte by byte.\r\n\r\n        The optional SKIP1 and SKIP2 specify the number of bytes to skip\r\n        at the beginning of each file (zero by default).\r\n\r\n        Mandatory arguments to long options are mandatory for short options too.\r\n          -b, --print-bytes          print differing bytes\r\n          -i, --ignore-initial=SKIP         skip first SKIP bytes of both inputs\r\n          -i, --ignore-initial=SKIP1:SKIP2  skip first SKIP1 bytes of FILE1 and\r\n                                              first SKIP2 bytes of FILE2\r\n          -l, --verbose              output byte numbers and differing byte values\r\n          -n, --bytes=LIMIT          compare at most LIMIT bytes\r\n          -s, --quiet, --silent      suppress all normal output\r\n              --help                 display this help and exit\r\n          -v, --version              output version information and exit\r\n\r\n        SKIP values may be followed by the following multiplicative suffixes:\r\n        kB 1000, K 1024, MB 1,000,000, M 1,048,576,\r\n        GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y.\r\n\r\n        If a FILE is '-' or missing, read standard input.\r\n        Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.\r\n\r\n        This utility is part of the uutils project: https://github.com/uutils/\r\n        Report bugs here: https://github.com/uutils/diffutils/issues\r\n    \"},\r\n        params.executable.to_string_lossy()\r\n    );\r\n```\r\n\r\nOption 2 is slightly more work, but dodges any concerns related to using stuff directly from GNU cmp, and something we would probably want if we ever move to something like Clap, I suppose.\r\n\r\nThoughts? Concerns?","author":{"url":"https://github.com/kov","@type":"Person","name":"kov"},"datePublished":"2024-09-30T12:27:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/96/diffutils/issues/96"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a7b3ac0a-3bd4-f5fb-8bf4-7c6819b8e7af
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF8C:3D3A2:F0EC28:1436EE5:6A4D83D1
html-safe-noncef2c5d37824b1e62b4bcfa62e8b7e5acc286b8f5583c776c6c0a67fa639f3fdfb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjhDOjNEM0EyOkYwRUMyODoxNDM2RUU1OjZBNEQ4M0QxIiwidmlzaXRvcl9pZCI6Ijc3OTMwNzU2Njk0MTE3Njc4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5a2cb9cb98b93af20e9c7554b4d79fadc879bb41f52857c842c2c0d185b5c36f
hovercard-subject-tagissue:2556503096
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/uutils/diffutils/96/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d37503e4f08ca675e350642617c83836f7d668ef2605644c1eae6d0011f7dff0/uutils/diffutils/issues/96
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d37503e4f08ca675e350642617c83836f7d668ef2605644c1eae6d0011f7dff0/uutils/diffutils/issues/96
og:image:altI am working on the cmp implementation (#88) and would like to have --help output something useful, which I think is important for our version to really replace GNU cmp on a system. We should figur...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekov
hostnamegithub.com
expected-hostnamegithub.com
Nonec6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae
turbo-cache-controlno-preview
go-importgithub.com/uutils/diffutils git https://github.com/uutils/diffutils.git
octolytics-dimension-user_id5148717
octolytics-dimension-user_loginuutils
octolytics-dimension-repository_id341787720
octolytics-dimension-repository_nwouutils/diffutils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id341787720
octolytics-dimension-repository_network_root_nwouutils/diffutils
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6702a58b419a792226bd21ef0fb1bcb318bbcaa3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/uutils/diffutils/issues/96#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fuutils%2Fdiffutils%2Fissues%2F96
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fuutils%2Fdiffutils%2Fissues%2F96
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=uutils%2Fdiffutils
Reloadhttps://github.com/uutils/diffutils/issues/96
Reloadhttps://github.com/uutils/diffutils/issues/96
Reloadhttps://github.com/uutils/diffutils/issues/96
Please reload this pagehttps://github.com/uutils/diffutils/issues/96
uutils https://github.com/uutils
diffutilshttps://github.com/uutils/diffutils
Notifications https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Fork 35 https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Star 269 https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Code https://github.com/uutils/diffutils
Issues 20 https://github.com/uutils/diffutils/issues
Pull requests 12 https://github.com/uutils/diffutils/pulls
Actions https://github.com/uutils/diffutils/actions
Projects https://github.com/uutils/diffutils/projects
Security and quality 0 https://github.com/uutils/diffutils/security
Insights https://github.com/uutils/diffutils/pulse
Code https://github.com/uutils/diffutils
Issues https://github.com/uutils/diffutils/issues
Pull requests https://github.com/uutils/diffutils/pulls
Actions https://github.com/uutils/diffutils/actions
Projects https://github.com/uutils/diffutils/projects
Security and quality https://github.com/uutils/diffutils/security
Insights https://github.com/uutils/diffutils/pulse
How to approach --help implementationhttps://github.com/uutils/diffutils/issues/96#top
https://github.com/kov
kovhttps://github.com/kov
on Sep 30, 2024https://github.com/uutils/diffutils/issues/96#issue-2556503096
#88https://github.com/uutils/diffutils/pull/88
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.