Handle --help/-h in bec-set-account script

This commit is contained in:
2025-08-27 09:49:51 +02:00
parent 8187e6b4ef
commit bcfe59492a
+10
View File
@@ -1,5 +1,15 @@
#!/bin/sh
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Usage: ./$(basename "$0") <pgroup>"
echo
echo "Change the active pgroup in BEC to the specified pgroup."
echo
echo "Example:"
echo " ./$(basename "$0") p12345"
exit 0
fi
if [ $# -ne 1 ]; then
echo "Provide exactly one argument: the pgroup name."
exit 1