made "usage:" error message take $0 instead of being hardcoded
[baseconv.git] / tobin
diff --git a/tobin b/tobin
index 58c0eae07f7fe70e6e3b6448d72717d8cae4c51c..a10a72ddf57e91c77c2386ba691d2499f92d55ed 100755 (executable)
--- a/tobin
+++ b/tobin
@@ -28,7 +28,7 @@ conv() {
 
 
 main() {
-       USAGE="usage: tobin [-mnp] ..."
+       USAGE="usage: ${0} [-mnp] ..."
        if ! [ "$1" = "x" ] && ! [ -t 0 ]; then
                cat | tr '\n' ' ' | xargs tobin "x" "$@"
                return "$?"