From patchwork Fri Aug 3 00:50:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 10554361 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5CFF3174A for ; Fri, 3 Aug 2018 00:51:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 444A22BE63 for ; Fri, 3 Aug 2018 00:51:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37C2E2C011; Fri, 3 Aug 2018 00:51:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE8652BE63 for ; Fri, 3 Aug 2018 00:51:25 +0000 (UTC) Received: from localhost ([::1]:48427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flOJP-0004OX-S3 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 02 Aug 2018 20:51:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flOIe-0003zd-Od for qemu-devel@nongnu.org; Thu, 02 Aug 2018 20:50:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flOId-0000E8-VT for qemu-devel@nongnu.org; Thu, 02 Aug 2018 20:50:36 -0400 Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]:40091) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1flOIX-00009V-JS; Thu, 02 Aug 2018 20:50:29 -0400 Received: by mail-it0-x241.google.com with SMTP id h23-v6so6127058ita.5; Thu, 02 Aug 2018 17:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=h/8aMAr6iHz2Lhm1KJJZ3Fm1TaLEitR3TijhdyWPIdw=; b=KX/t7JiBWjSQZed0T0XP9yxMhkOd8leobOgc0jktsSO4yNuHuNMmb1EEZLQkU3DHOW KmRE7iulXkUCW0RG2fFi8t2faub4Q1uK3QgXIpp1W0SqapneC6nfxI7YjCKpFRZ9pJal ug8R6hSaaZR9q/aOWqqtgtwDRNa+D+tLWUshD25oP1m1jSZw0nL1uNhepC6qG51tnq/7 UlOzNvunx+a08K6yLY1pyYXOK3atR2++98E/m6S2cEyZ2FkmLRRQPSTnuexPPGqPaCf0 ysxBNmQsIndrAK4j/vGrLRaRgUO8Ds6FsMELQpVvQoTg7tvDwaqqHQbQAIIgD6hd8OrQ fxCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=h/8aMAr6iHz2Lhm1KJJZ3Fm1TaLEitR3TijhdyWPIdw=; b=NDkGMorEY3AQhgr+zw/NaniCgxcrfAo6r+t1+xxWFTjN4WG6iagHxVVGbs27VHJyK1 q1Dy7nL6nOPfSTon28mkh1b4ZYI7o57hgoBQM4HMoDBhb6WK46eVGGwYn8UOCoTK0Lfe 01IxFSMkMyv9jLkUgIfYhyMlMNRYaTIllI1IOoLloTer5Zw2GDUOZO9yM4UeTuUZx7aj io0lYohLLvNG6llsE3oAEe8gOq3ytJXRUmQTLecu2iaY2lf3/caa1LYNNBv2RVqkz+DR wr/nsj/z+skjJyFgseCNTNvjD2sP7+WnuoEzUwrkaFe1OZPftdvzGOR5cw60WrgzAO8L 2h/A== X-Gm-Message-State: AOUpUlGwUK2n3IkZRr0VCKQZRzpscOid73bh5bf9gVhqhce7NrNLzIuT hB9Su70w69mMumOQAMuDYcA= X-Google-Smtp-Source: AAOMgpeZ/qfBECh0imIrCJzv1aqRwPLbPN3jjYG1P+CEggO+Ja+7QzxN4xsfegwuE/V5STYHaUJf1g== X-Received: by 2002:a24:324e:: with SMTP id j75-v6mr4998522ita.100.1533257428821; Thu, 02 Aug 2018 17:50:28 -0700 (PDT) Received: from localhost.localdomain ([69.14.184.20]) by smtp.gmail.com with ESMTPSA id v26-v6sm999078ioh.53.2018.08.02.17.50.27 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 02 Aug 2018 17:50:27 -0700 (PDT) From: John Arbuckle To: kwolf@redhat.com, mreitz@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org Date: Thu, 2 Aug 2018 20:50:15 -0400 Message-Id: <20180803005015.5116-1-programmingkidx@gmail.com> X-Mailer: git-send-email 2.14.3 (Apple Git-98) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::241 Subject: [Qemu-devel] [PATCH] qemu-img.c: Add examples section X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Arbuckle Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add an examples section to the help output. Signed-off-by: John Arbuckle --- qemu-img.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qemu-img.c b/qemu-img.c index 1acddf693c..f77c82695d 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -199,6 +199,17 @@ static void QEMU_NORETURN help(void) printf("%s\nSupported formats:", help_msg); bdrv_iterate_format(format_print, NULL); + + printf("\n\nExamples:\n\n" + "Create: qemu-img create -f qcow2 image.qcow2 10G\n\n" + "Info: qemu-img info image.qcow2\n\n" + "Resize: qemu-img resize image.qcow2 20G\n\n" + "Convert: qemu-img convert -f raw -O qcow2 image.img image.qcow2\n\n" + "Check: qemu-img check image.qcow2\n\n" + "Map: qemu-img map -f qcow2 --output=human image.qcow2\n\n" + "Rebase: qemu-img rebase -b new_backing_file.qcow2 image.qcow2" + ); + printf("\n\n" QEMU_HELP_BOTTOM "\n"); exit(EXIT_SUCCESS); }