From de81cc6c4ced2c4ea088f0f104fe04759fd536db Mon Sep 17 00:00:00 2001 From: SirNapkin1334 <31591796+SirNapkin1334@users.noreply.github.com> Date: Mon, 16 Apr 2018 09:22:23 -0700 Subject: [PATCH] Add -o & -s switches and qr command --- Scripting.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Scripting.md b/Scripting.md index 71e5993..6fa1cee 100644 --- a/Scripting.md +++ b/Scripting.md @@ -9,6 +9,9 @@ One can also place the script anywhere on the SD (or any other drive, for that m GodMode9 script resembles shell script. Comments are denoted by `#` and work anywhere. Variable are in the format `$[VAR]` where `VAR` is the name of the variable. (i.e. $[HAX]). Surround an argument with `"` if it must contain whitespaces. Any redundant whitespaces outside of `"` will be treated as a single whitespace. An unknown command will lead to script abort. +#### `-o` and `-s` Switches +You can use `-o` and/or `-s` switches on any command, or `--optional` / `--silent` respectively. `-o` Continues on failures of a command, and `-s` will try to suppress all error messages. +Example: `ask -o -s "Perform this operation (I will completely ignore your response)?"` ### Commands @@ -17,6 +20,8 @@ A short description of every command. Click on the command to go to a more detai **echo** command - Outputs data to the screen. Syntax: `echo ""` Example: `echo "Hello There!"` +**qr** command - Does the same as echo but also displays a QR on the top screen. Syntax: `qr ` Example: `qr "Scan for cool stuff! ;)" "https://github.com/d0k3/GodMode9"` + **chk** command - Checks two values against each other. Syntax: `chk ` Example: `chk $[HAX] a9lh` [more to come ofc]