diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-02 15:32:45 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-02 15:32:45 -0400 |
commit | f5b650a06cddd447ad7a75330e9e9c6baf23ccc4 (patch) | |
tree | 8be9f443b7056a9c08beb37fce490e99d1ea26a1 /src/lib/librelib | |
parent | 86ee0a5da2a3a02d291ae40c8570bcd97ff066de (diff) |
Add documentation for lib/
* Add a bunch of man-pages
* Add some comments to conf.sh
* Add more information to librelib:usage()
Diffstat (limited to 'src/lib/librelib')
-rwxr-xr-x | src/lib/librelib | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/librelib b/src/lib/librelib index 2dc9314..a58f5d3 100755 --- a/src/lib/librelib +++ b/src/lib/librelib @@ -34,7 +34,8 @@ cmd=${0##*/} usage() { . libremessages print 'Usage: . $(%s LIBRARY)' "$cmd" - print "Finds a shell library file" + print 'Usage: %s -h' "$cmd" + print "Finds a Bash library file" echo prose "While some libraries can be sourced just by their name because they are installed in PATH (like libremessages), some are not @@ -45,7 +46,10 @@ usage() { changed with the environmental variable LIBRETOOLS_LIBDIR.' "$default_libdir" echo print "Example usage:" - printf ' . $(%s conf.sh)\n' "$cmd" + printf ' . $(%s conf)\n' "$cmd" + echo + print "Options:" + flag '-h' 'Show this message' } main() { |