Rethinking How I Deal With CLI Arguments (replacing getopt)

7 ingve 2 5/16/2025, 6:42:05 AM xnacly.me ↗

Comments (2)

sumanthvepa · 15h ago
Getopt and its brethren in other languages are starting to get long in the tooth. Modern CLI tools need more flexible parsing.
0points · 6h ago
Would 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/

2: https://github.com/alecthomas/kong?tab=readme-ov-file#introd...