Show HN: Add a command-line interface to any C++ program

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • command-interpreter

    Add a command interpreter (eg., REPL) to any C++ program

  • jarro2783/cxxopts

    Lightweight C++ command line option parser

  • As mentioned this isn't wholly relevent because TFA is about adding a REPL.

    Nonetheless I prefer to use cxxopts[0] over BPO if I can justify the extra submodule

    [0] https://github.com/jarro2783/cxxopts

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • cpp-readline

    A very simple C++ wrapper for GNU readline.

  • Nice work! I maintain a library, cpp-readline [1], with a very similar API. The main difference is that relegates the REPL part to GNU readline. You do have the additional dependency, but on the other hand it automatically adds history and other nice-to-have features.

    [1]: https://github.com/Svalorzen/cpp-readline

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