Skip to content

Commit

Permalink
feat.: $PROGNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
takusuman committed Oct 18, 2021
1 parent eb83534 commit ebf0487
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/errhand.shi
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# error handling library
# pretty straightfoward

# Program information, why not?
PROGNAME=`basename $0`

# Use this both for warnings and errors
function printerr {
printf '%s\n' "$@" 1>&2
Expand Down

0 comments on commit ebf0487

Please sign in to comment.