gst-app-maker: fix program name and arguments in usage text and help text
authorAntonio Ospite <ao2@ao2.it>
Fri, 1 Feb 2019 16:04:19 +0000 (17:04 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 17 Jun 2020 14:13:29 +0000 (14:13 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/184>

tools/gst-app-maker

index f3c3d1f305108d0f8e7f8b01fe2908e02e2ace77..c96892a6fd2c9198b03109a999e78c37b2b36dac 100755 (executable)
@@ -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