gst-app-maker: fix program name and arguments in usage text and help text

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/184>
This commit is contained in:
Antonio Ospite 2019-02-01 17:04:19 +01:00 committed by GStreamer Merge Bot
parent 1a68da54b6
commit 65080e9716

View file

@ -8,12 +8,12 @@ while [ "$1" ] ; do
case $1 in case $1 in
--help) --help)
cat <<-EOF cat <<-EOF
Usage: element-maker [OPTIONS] _NAME BASE_CLASS Usage: $(basename "$0") [OPTIONS] APP_NAME
Create a GStreamer application from a template. Create a GStreamer application from a template.
Options: Options:
--help Print this information --help Print this information
--prefix PREFIX Use PREFIX instead of "gst" --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 EOF
exit 0 exit 0
;; ;;
@ -36,7 +36,7 @@ EOF
done done
if [ "$name" = "" ] ; then if [ "$name" = "" ] ; then
echo "Usage: element-maker [OPTIONS] ELEMENT_NAME BASE_CLASS" echo "Usage: $(basename "$0") [OPTIONS] APP_NAME"
exit 1 exit 1
fi fi