From: Antonio Ospite Date: Fri, 1 Feb 2019 16:04:19 +0000 (+0100) Subject: gst-app-maker: fix program name and arguments in usage text and help text X-Git-Tag: 1.19.3~507^2~1746 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65080e97164e0f65ce38492acab086b161663eaf;p=platform%2Fupstream%2Fgstreamer.git gst-app-maker: fix program name and arguments in usage text and help text Part-of: --- diff --git a/tools/gst-app-maker b/tools/gst-app-maker index f3c3d1f305..c96892a6fd 100755 --- a/tools/gst-app-maker +++ b/tools/gst-app-maker @@ -8,12 +8,12 @@ while [ "$1" ] ; do case $1 in --help) cat <<-EOF -Usage: element-maker [OPTIONS] _NAME BASE_CLASS +Usage: $(basename "$0") [OPTIONS] APP_NAME Create a GStreamer application from a template. Options: --help Print this information --prefix PREFIX Use PREFIX instead of "gst" -Example: 'gst-app-maker my_app' will create the file gstmyapp.c. +Example: '$(basename "$0") my_app' will create the file gstmyapp.c. EOF exit 0 ;; @@ -36,7 +36,7 @@ EOF done if [ "$name" = "" ] ; then - echo "Usage: element-maker [OPTIONS] ELEMENT_NAME BASE_CLASS" + echo "Usage: $(basename "$0") [OPTIONS] APP_NAME" exit 1 fi