5 ms·
Half 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 i
by uranusjr 6y ago
Half 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.