3 ms·
Rethinking How I Deal With CLI Arguments (replacing getopt)
- sumanthvepa 1y agoGetopt and its brethren in other languages are starting to get long in the tooth. Modern CLI tools need more flexible parsing.
- 0points 1y agoWould you care to offer some comments about their shortcomings? I'm a command-line toolings creator and are not familiar with your criticism. I am using clap [1] for my rust projects, and I am using kong [2] for my golang projects. Both offer seemingly endless extensibility in order to handle every imaginable use-case. 1: https://docs.rs/clap/latest/clap/ https://docs.rs/clap/latest/clap/ 2: https://github.com/alecthomas/kong?tab=readme-ov-file#introduction https://github.com/alecthomas/kong?tab=readme-ov-file#introd...