Tcl exception codes cleanup, shutdown command amendments
[fw/openocd] / doc / openocd.texi
index 4bec637f3ee29c1bcbfe0c585c3ba3f57cf8be5f..e418e05005e27cc30e7a48e59aaf2902f2691df2 100644 (file)
@@ -6486,8 +6486,10 @@ Useful in connection with script files
 (@command{script} command and @command{target_name} configuration).
 @end deffn
 
-@deffn Command shutdown
-Close the OpenOCD daemon, disconnecting all clients (GDB, telnet, other).
+@deffn Command shutdown [@option{error}]
+Close the OpenOCD daemon, disconnecting all clients (GDB, telnet,
+other). If option @option{error} is used, OpenOCD will return a
+non-zero exit code to the parent process.
 @end deffn
 
 @anchor{debuglevel}