command-interface
Languages and libraries
c++ library
SHOW HN2021
119points
40comments
#435of 2,533 in 2021
Top 18%of 2021 by points
How HN took it
CuriousMostly questions and neutral comments
2 positive, 10 neutral or asking, 0 mixed, 3 critical, out of 15 comments about the project. Thread score -0.07.
Design: 2 for, 0 againstDocs: 0 for, 2 againstExecution: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Clean, simple API and clever implementation.
From 2 comments
Clean and simple API, clever implementation. Very nicely done. Saying as someone who worked on a cli framework for network devices in the past and quite enjoyed it. It was in C…
eps on HNNice work. Thanks for releasing it as free software. If I understand the design correctly, one can provide a custom argument parser by specializing lexical_cast?
choeger on HN
Objections
Title says command-line interface but it is a REPL.
From 2 comments
This isn't a command-line interface, this is a REPL. Very confusing title.
butwhywhyoh on HNYea, I was a little confused by the "command line" claim, too. Like, where is it parsing argv and argc, and does it support long style and short style options? Title should say…
ryandrake on HN
Questions
Can custom argument parsing be added by specializing lexical_cast?
From 1 comment
Nice work. Thanks for releasing it as free software. If I understand the design correctly, one can provide a custom argument parser by specializing lexical_cast?
choeger on HN
How does it compare to boost::spirit?
From 1 comment
How does this compare to boost::spirit? I tried some years ago to make something similar but gave up due to the huge compile times for even simple grammar parsing.
ulnarkressty on HN
Alternatives named
cpp-readline
From 1 comment
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…
svalorzen on HN
Boost Program_options
From 1 comment
Obligatory reference to Boost's Program_options , which is as close to a standard way to handle command line options in C++ there is.…
nuerow on HN
cling/ROOT
From 1 comment
Note that you can use cling/ROOT an actual C++ repl.
cozzyd on HN