Title: `git2cpp -v` prints too much information · Issue #26 · QuantStack/git2cpp · GitHub
Open Graph Title: `git2cpp -v` prints too much information · Issue #26 · QuantStack/git2cpp
X Title: `git2cpp -v` prints too much information · Issue #26 · QuantStack/git2cpp
Description: If you run git2cpp -v or git2cpp --version you get the version information as requested but also the help information, so we need to avoid displaying the help information if the version flag is set, probably here: git2cpp/src/main.cpp Li...
Open Graph Description: If you run git2cpp -v or git2cpp --version you get the version information as requested but also the help information, so we need to avoid displaying the help information if the version flag is set...
X Description: If you run git2cpp -v or git2cpp --version you get the version information as requested but also the help information, so we need to avoid displaying the help information if the version flag is set...
Opengraph URL: https://github.com/QuantStack/git2cpp/issues/26
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`git2cpp -v` prints too much information","articleBody":"If you run `git2cpp -v` or `git2cpp --version` you get the version information as requested but also the help information, so we need to avoid displaying the help information if the version flag is set, probably here:\nhttps://github.com/QuantStack/git2cpp/blob/dbd11b0878b3972a0c29a0e03c4a1871efb1055e/src/main.cpp#L42\n\nWe could modify the `test_version` to assert that only one line is written to `stdout`, perhaps using something like `p.stdout.count(b('\\n'))`.","author":{"url":"https://github.com/ianthomas23","@type":"Person","name":"ianthomas23"},"datePublished":"2025-07-24T08:11:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26/git2cpp/issues/26"}
| 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:8a4e6f3a-cce5-e21d-22b7-d1e5210e4861 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D508:377E29:BAA1D3:F49DF5:69716EE9 |
| html-safe-nonce | 142a03ca8eef4695005fbc8f9fd5467002de7ae432d974a511e719c23fe9e218 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTA4OjM3N0UyOTpCQUExRDM6RjQ5REY1OjY5NzE2RUU5IiwidmlzaXRvcl9pZCI6IjQ5NTQ5MDM1MTQwMTkwOTgzNDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f1256c5e47bdf0099068d8b306828ede1f0d96aa44df966ad0ffdbed2908aedb |
| hovercard-subject-tag | issue:3258954820 |
| 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/QuantStack/git2cpp/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/57f76b306d078ed19849f6c986104af6be0cfa21609ce56ab234f0ad6dcc10de/QuantStack/git2cpp/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/57f76b306d078ed19849f6c986104af6be0cfa21609ce56ab234f0ad6dcc10de/QuantStack/git2cpp/issues/26 |
| og:image:alt | If you run git2cpp -v or git2cpp --version you get the version information as requested but also the help information, so we need to avoid displaying the help information if the version flag is set... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ianthomas23 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 353479110ec1e87d687013548f216c852055ec907d09d2fb6a180cb5ed9d28e1 |
| turbo-cache-control | no-preview |
| go-import | github.com/QuantStack/git2cpp git https://github.com/QuantStack/git2cpp.git |
| octolytics-dimension-user_id | 19627246 |
| octolytics-dimension-user_login | QuantStack |
| octolytics-dimension-repository_id | 988433538 |
| octolytics-dimension-repository_nwo | QuantStack/git2cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 988433538 |
| octolytics-dimension-repository_network_root_nwo | QuantStack/git2cpp |
| 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 | a4c7e274c03a115b82dcef6c47ce3f7f903e88e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width