forked from cps-deployments/psi.bec
Handle --help/-h in bec-set-account script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user