From f5b650a06cddd447ad7a75330e9e9c6baf23ccc4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 2 Oct 2013 15:32:45 -0400 Subject: Add documentation for lib/ * Add a bunch of man-pages * Add some comments to conf.sh * Add more information to librelib:usage() --- src/lib/librelib | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/lib/librelib') 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() { -- cgit v1.2.3-54-g00ecf