I want to print some usage information for some functions. I customarily use echo or printf for each line.
echo "-V, --version"
echo " Display the version number and copyrights of the invoked tool."
echo "-u, --usage"
echo " Provides brief information on how to use this tool."
echo "-h, --help"
echo " Print a description of the command-line options understood by"
Recently I have been looking at list where one can set a long multi-line string instead.
(defun myfunc ()
"-V, --version
Display the version number and copyrights of the invoked tool.
-u, --usage
Provides brief information on how to use this tool.
-h, --help
Print a description of the command-line options understood by"
(commands-here))
I would like to do the same (as in lisp) for printing documentation for bash scripts. What can I do to achieve the same?