diff options
author | P. J. McDermott <pjm@nac.net> | 2012-08-01 02:24:23 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-08-01 02:24:23 (EDT) |
commit | 13a73dd8ee1d0d518e781a5ea06f1ff4e7aff4ed (patch) | |
tree | 48bf1d4f7f7e631b96d332b0bfe27c826e70cd7d /lib | |
parent | 6c05d3e578db5bd6756a96b728ded49b8ae8f13f (diff) |
Clean up comments in messages library.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/messages.sh | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/lib/messages.sh b/lib/messages.sh index c2c381e..b2d3a2a 100644 --- a/lib/messages.sh +++ b/lib/messages.sh @@ -19,13 +19,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# Prints an error message and exits. -# Parameters: -# message -# Output: -# message -# Return value: -# none +# TODO: Which of these should print to the standard error stream – just +# oh_error() and oh_warn()? + oh_error() { printf '%s: Error: ' "${0##*/}" @@ -34,13 +30,6 @@ oh_error() exit 1 } -# Prints a warning message. -# Parameters: -# message -# Output: -# message -# Return value: -# 0 oh_warn() { printf '%s: Warning: ' "${0##*/}" @@ -49,13 +38,6 @@ oh_warn() return 0 } -# Prints an informational message. -# Parameters: -# message -# Output: -# message -# Return value: -# 0 oh_info() { printf '%s: ' "${0##*/}" |