]> git.proxmox.com Git - qemu.git/blobdiff - qemu-ga.c
Support 'help' as a synonym for '?' in command line options
[qemu.git] / qemu-ga.c
index 8199da789cab6445b4a0e59b1378372638fba680..f1a39ec3a6425d4072d3a871eb3b9643303ea988 100644 (file)
--- a/qemu-ga.c
+++ b/qemu-ga.c
@@ -736,7 +736,7 @@ int main(int argc, char **argv)
             break;
         case 'b': {
             char **list_head, **list;
-            if (*optarg == '?') {
+            if (is_help_option(optarg)) {
                 list_head = list = qmp_get_command_list();
                 while (*list != NULL) {
                     printf("%s\n", *list);