make help a seperate command

This commit is contained in:
rootzoll
2021-09-14 18:10:37 +02:00
parent 042aa84214
commit 0e8795942b
2 changed files with 54 additions and 55 deletions

View File

@@ -307,7 +307,7 @@ else
echo "For setup logs: cat raspiblitz.log" echo "For setup logs: cat raspiblitz.log"
echo "or call the command 'debug' to see bigger report." echo "or call the command 'debug' to see bigger report."
fi fi
echo "Blitz command line options: blitz help" echo "Blitz command line options: blitzhelp"
echo "Back to menus use command: raspiblitz" echo "Back to menus use command: raspiblitz"
echo echo
exit 0 exit 0

View File

@@ -7,12 +7,14 @@ fi
# SHORTCUT COMMANDS you can call as user 'admin' from terminal # SHORTCUT COMMANDS you can call as user 'admin' from terminal
function blitz() {
cd /home/admin
./00raspiblitz.sh
}
# command: blitz # command: blitz
# calls the the raspiblitz mainmenu (shortcut) # calls the the raspiblitz mainmenu (shortcut)
function blitz() { function blitzhelp() {
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ] || [ "$1" = "--help" ] || [ "$1" = "help" ] ; then
echo "_commands.sh"
echo "Usage: command [options]"
echo echo
echo "Blitz commands are consolidated here." echo "Blitz commands are consolidated here."
echo echo
@@ -57,12 +59,9 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ] || [ "$1" = "--help" ]
echo " jm JoinMarket" echo " jm JoinMarket"
echo " pyblock PyBlock" echo " pyblock PyBlock"
echo echo
echo " Extras:" echo "Extras:"
echo " whitepaper download the whitepaper from the blockchain to /home/admin/bitcoin.pdf" echo " whitepaper download the whitepaper from the blockchain to /home/admin/bitcoin.pdf"
echo " notifyme wrapper for blitz.notify.sh that will send a notification using the configured method and settings" echo " notifyme wrapper for blitz.notify.sh that will send a notification using the configured method and settings"
else
cd /home/admin
./00raspiblitz.sh
fi fi
} }