Skip to content

Commit

Permalink
Use basename of $0 in help messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dlh committed Sep 29, 2015
1 parent 82b1a8f commit 04bc419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube-dl-parallel
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function parse_options() {
while getopts "hj:" option "$@"; do
case $option in
h)
echo "Usage: $0 [-hj] <url> [<url> ...] [-- <youtube-dl options>]"
echo "Usage: ${0##*/} [-hj] <url> [<url> ...] [-- <youtube-dl options>]"
echo " -h : Shows this help message."
echo " -j <jobs>: The number of jobs to run in parallel. The default is 3."
echo
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 04bc419

Please sign in to comment.