vercel / arg

Simple argument parsing
https://npmjs.com/arg
MIT License
1.23k stars 54 forks source link

Automatic help documentation #77

Open asbjornu opened 1 month ago

asbjornu commented 1 month ago

It doesn't seem like it's currently possible to output human-readable documentation as expected when --help is passed to a command line utility. It would be nice if an optional description could be passed to each argument and have all arguments with their descriptions output into a neat string that could be logged to the console when --help is set to true.