5 ms·
Is 'structopt' a common name for this type of argument parser library? I thought it started with the Rust library of the same name but no one has mentioned it y
by bschwindHN 6y ago
Is 'structopt' a common name for this type of argument parser library? I thought it started with the Rust library of the same name but no one has mentioned it yet...
In my opinion, it is _the_ way to quickly create a quality CLI.
https://github.com/TeXitoi/structopt https://github.com/TeXitoi/structopt
- uranusjr 6y agoHalf of the argument-parsing libraries contain either “arg” or “opt” due to the initial widespread of getopt or argp. And since both tools parse the arguments into a struct, the choice isn’t that surprising.
- Omin 6y agoIf you look at the repo's tags, they also include `clap`, which is the most popular Rust argument parsing library and the one that the original structopt is built upon. I don't think this coincidence. This looks like it's directly inspired by the Rust library, even though the README gives no indication of that.
- the-dude 6y agoIsn't CLAPs origin C++ ?
- Macha 6y agoAt least clap for "command line arg parser" has been used in this C++ library from 2006: http://tclap.sourceforge.net/manual.html http://tclap.sourceforge.net/manual.html Though I'm not sure if the Rust clap has any origins in any specific library for another language.