From 04bc4191bea4f9e792439a936582bc60bdbbfc9d Mon Sep 17 00:00:00 2001 From: Daniel Lee Harple Date: Mon, 28 Sep 2015 12:06:29 -0400 Subject: [PATCH] Use basename of $0 in help messages --- youtube-dl-parallel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube-dl-parallel b/youtube-dl-parallel index f0a1380..ece5951 100755 --- a/youtube-dl-parallel +++ b/youtube-dl-parallel @@ -40,7 +40,7 @@ function parse_options() { while getopts "hj:" option "$@"; do case $option in h) - echo "Usage: $0 [-hj] [ ...] [-- ]" + echo "Usage: ${0##*/} [-hj] [ ...] [-- ]" echo " -h : Shows this help message." echo " -j : The number of jobs to run in parallel. The default is 3." echo @@ -86,7 +86,7 @@ function find_longest_title() { parse_options "$@" if test -z "$URLS"; then - error "No urls specified. Try $0 -h for more information." + error "No urls specified. Try ${0##*/} -h for more information." fi # Export functions and variables for use with parallel