Fix debug help error message.

When given an invalid debug command, libguestfs responds with the
error message:

  libguestfs: error: debug: use 'debug help' to list the supported commands

However this command does not work, as debug requires two
arguments. This change updates the message to prompt the user to use
'debug help 0'.
This commit is contained in:
Matthew Booth
2011-10-31 16:47:50 +00:00
committed by Richard W.M. Jones
parent 6f84ef6768
commit 4e3a1205eb

View File

@@ -92,7 +92,7 @@ do_debug (const char *subcmd, char *const *argv)
return cmds[i].f (subcmd, argc, argv);
}
reply_with_error ("use 'debug help' to list the supported commands");
reply_with_error ("use 'debug help 0' to list the supported commands");
return NULL;
}