mbland / go-script-bash

Framework for writing modular, discoverable, testable Bash scripts
ISC License
95 stars 16 forks source link

Add help section extraction support #235

Open nkakouros opened 6 years ago

nkakouros commented 6 years ago

Due diligence

Description

It would be handy to have a function that returns the Usage or Options sections from the help text. This could be used if a command is called without its expected arguments or with wrong options. Then the usage or options doc could be returned.