aboutsummaryrefslogtreecommitdiff
path: root/gui/debugger.cpp
diff options
context:
space:
mode:
authorD G Turner2014-05-15 01:35:48 +0100
committerD G Turner2014-05-15 01:35:48 +0100
commitfbb923daee62567aa8d9a6a5b02faf647e6233fa (patch)
tree64f902acc8cb97c6c440300ea5141e0ca83e274e /gui/debugger.cpp
parentbac58f3e1878bed442766bc03c4f43adb1cb05de (diff)
downloadscummvm-rg350-fbb923daee62567aa8d9a6a5b02faf647e6233fa.tar.gz
scummvm-rg350-fbb923daee62567aa8d9a6a5b02faf647e6233fa.tar.bz2
scummvm-rg350-fbb923daee62567aa8d9a6a5b02faf647e6233fa.zip
GUI: Add usage for "debuglevel" command output in Debugger base class.
Diffstat (limited to 'gui/debugger.cpp')
-rw-r--r--gui/debugger.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index da342e26e9..3cfa9f9803 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -505,6 +505,7 @@ bool Debugger::Cmd_OpenLog(int argc, const char **argv) {
bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
if (argc == 1) { // print level
DebugPrintf("Debugging is currently %s (set at level %d)\n", (gDebugLevel >= 0) ? "enabled" : "disabled", gDebugLevel);
+ DebugPrintf("Usage: %s <n> where n is 0 to 10 or -1 to disable debugging\n", argv[0]);
} else { // set level
gDebugLevel = atoi(argv[1]);
if (gDebugLevel >= 0 && gDebugLevel < 11) {
@@ -512,7 +513,8 @@ bool Debugger::Cmd_DebugLevel(int argc, const char **argv) {
} else if (gDebugLevel < 0) {
DebugPrintf("Debugging is now disabled\n");
} else {
- DebugPrintf("Invalid debug level value (0 to 10 or -1 to disable)\n");
+ DebugPrintf("Invalid debug level value\n");
+ DebugPrintf("Usage: %s <n> where n is 0 to 10 or -1 to disable debugging\n", argv[0]);
}
}