qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 26/30] qemu-img: Use user_creatable_process_cmdline() for


From: Paolo Bonzini
Subject: Re: [PATCH v3 26/30] qemu-img: Use user_creatable_process_cmdline() for --object
Date: Sat, 13 Mar 2021 08:47:12 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0

On 13/03/21 08:40, Markus Armbruster wrote:
+                if (!user_creatable_add_from_str(optarg, &local_err)) {
+                    if (local_err) {
+                        error_report_err(local_err);
+                        exit(2);
+                    } else {
+                        /* Help was printed */
+                        exit(EXIT_SUCCESS);
+                    }
+                }
+                break;
              }
-        }   break;
          case OPTION_IMAGE_OPTS:
              image_opts = true;
              break;
Why is this one different?  The others all call
user_creatable_process_cmdline().



It's to exit with status code 2 instead of 1.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]