Re:Swift: Announcing ArgumentParser
by paulddraper on Friday February 28, 2020 @04:37PM
(#22446639)
Docopt is indeed popular. By virtue of having it creating its own language, its API is naturally "transcendent." :)
I've used it in Ruby, for which IMO it is the best available choice.
But there is only so much you can express in docopt, and I quickly begin missing the flexibility of a "real" API and argparse.
At least in the argument parsing space, docopt[0] did as well, with official implementations in ~22 languages. It might not always be the best native approach, but the one I will reach for when I have to do argument parsing in a new language.