Received: from eggs.gnu.org ([2001:4830:134:3::10]:46654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpYrZ-0002l7-FK for Qemu-devel@nongnu.org; Tue, 14 Aug 2018 08:55:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpYrV-0002xR-1P for Qemu-devel@nongnu.org; Tue, 14 Aug 2018 08:55:53 -0400 References: <20180730212249.16418-1-programmingkidx@gmail.com> <5679ec6f-e2d7-e139-1b56-304540c89977@redhat.com> <20180814084047.GD5025@dhcp-200-186.str.redhat.com> From: Eric Blake Message-ID: <91ef77d7-026d-4930-bd4c-a94b17fa247c@redhat.com> Date: Tue, 14 Aug 2018 07:55:46 -0500 MIME-Version: 1.0 In-Reply-To: <20180814084047.GD5025@dhcp-200-186.str.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Max Reitz , John Arbuckle , qemu-block@nongnu.org, Qemu-devel@nongnu.org On 08/14/2018 03:40 AM, Kevin Wolf wrote: >> And I've already expressed my opinion that it is already rather long, where >> making it longer is not necessarily making it smarter. > > I think if we want to improve the help text, we should split it up. > > $ qemu-img --help > qemu-img version 2.12.94 (v3.0.0-rc4-5-g4fe9c3e13d-dirty) > Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers > usage: qemu-img [standard options] command [command options] > QEMU disk image utility > > '-h', '--help' display this help and exit > '-V', '--version' output version information and exit > '-T', '--trace' [[enable=]][,events=][,file=] > specify tracing options > > Commands: > > amend Change options of an existing disk image > bench Run benchmarks on a given disk image > check Check the disk image for consistency or repair it > commit Merge the disk image into its backing file > ... > > Run 'qemu-img --help' for details. > > See for how to report bugs. > More information on the QEMU project at . Indeed, that matches the approach that 'cvs --help' and 'git --help' have taken. I could live with a split along those lines as being something smarter. When you want to learn the options for 'create', you may have to ask two different --help commands to learn everything you need ['--help' didn't give me enough, but told me to use 'create --help'], but at least you are not inundated with answers irrelevant to the question you are asking, so you don't have to scroll through a wall of text. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org