TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Header-only, extensible C++17 argument parser

21 点作者 sail0rm00n超过 8 年前

2 条评论

Animats超过 8 年前
Compare &quot;argparse&quot;, in Python.[1] There are a number of argument parsers like this. They have some way to describe the expected form of the command line, and check it. Errors result in a &quot;usage&quot; message which shows the desired form of the command line in the usual &quot;help&quot; style.<p>Github has at least three C++ implementations of &quot;argparse&quot;. Here&#x27;s a header-only one.[2]<p>[1] <a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;argparse.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;argparse.html</a> [2] <a href="https:&#x2F;&#x2F;github.com&#x2F;hbristow&#x2F;argparse" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hbristow&#x2F;argparse</a>
评论 #12939941 未加载
sail0rm00n超过 8 年前
By the way, I am looking for any and all feedback and would love a code-review!