libre-man / unix-opts

Unix-style command line options parser
MIT License
107 stars 13 forks source link

add "brief" keyword arg for showing only the usage #33

Closed travv0 closed 3 years ago

travv0 commented 3 years ago

Another feature request/implementation: Sometimes when there are a lot of command line arguments, you just want to show the "Usage: " line as opposed to printing all the options with their descriptions which can take up multiple screens if there are a lot (e.g. if the program is ran with no flags but some are required, you might just want to print the "usage" part of the description). This is a small change that adds a brief keyword argument that will cause the option+description rows to be omitted as long as usage-of is also passed.