Configuration based argument parsing

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • jarro2783/cxxopts

    Lightweight C++ command line option parser

  • So I let myself to satisfy my laziness! - And you have it. I have spent some time using protobuf project, which I love much, and cxxopts project which serves as a nice helper tool. I wanted to stick with code generation and have a working-out-of-the-box solution, starting from the description of arguments, finishing with data structures to use. Protobuf is nicely used as configuration and final structure generation, and cxxopts as parser helper, I just needed to write specific transpiler and bind them all together.

  • protoargs

    Code generated C++11/Python/Rust/Go command line arguments parser, based on protobuf configuration

  • That's how protoargs project appeared. Which converts special protobuf configuration into a ready-to-use arguments parser. And I do use it a lot in my projects. The best example was to use it in multiple commands CLI , e.g. you can implement your own "git init/clone/commit/..." easily. And protobuf allows preserving compatibility between versions. Recently I have used it inside gamedev project with a potentially huge number of commands, and now it takes me 5-10 min for new command to be added, and ~0 min to add new arguments to existing command and start using them in the code.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Protobuf

    Protocol Buffers - Google's data interchange format

  • So I let myself to satisfy my laziness! - And you have it. I have spent some time using protobuf project, which I love much, and cxxopts project which serves as a nice helper tool. I wanted to stick with code generation and have a working-out-of-the-box solution, starting from the description of arguments, finishing with data structures to use. Protobuf is nicely used as configuration and final structure generation, and cxxopts as parser helper, I just needed to write specific transpiler and bind them all together.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Hitting every branch on the way down

    4 projects | news.ycombinator.com | 29 Apr 2024
  • Reverse Engineering Protobuf Definitions from Compiled Binaries

    5 projects | news.ycombinator.com | 9 Mar 2024
  • Modern C++ Programming Course

    5 projects | news.ycombinator.com | 28 Nov 2023
  • Roll your own auth with Rust and Protobuf

    5 projects | dev.to | 28 Oct 2023
  • How to learn to use protoc in 21 easily infuriating steps

    1 project | news.ycombinator.com | 12 Aug 2023