From 65080e97164e0f65ce38492acab086b161663eaf Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 1 Feb 2019 17:04:19 +0100 Subject: [PATCH] gst-app-maker: fix program name and arguments in usage text and help text Part-of: --- tools/gst-app-maker | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gst-app-maker b/tools/gst-app-maker index f3c3d1f..c96892a 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 -- 2.7.4