[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] 答复: Re: [PATCH] chardev: Add 'help' option to print a
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] 答复: Re: [PATCH] chardev: Add 'help' option to print all available chardev backend types |
Date: |
Wed, 17 Aug 2016 08:52:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
"Lin Ma" <address@hidden> writes:
>>>> Marc-André Lureau <address@hidden> 8/17/2016 1:25 上午 >>>
[...]
>>How different is it from the list in qemu -help ? Why duplicate that list
>>with less informations (arguments and details) ? Do you expect it to be
>>easily machine readable?
>>
> No special reason, Just add 'help' option to make it more friendly, like the
> output of '-watchdog help' or '-tpmdev help', Sometimes I forget the chardev
> backend names which I want to try, I'd like to have a very easy&fast way to
> get the backend list :-).
>
> Various backends have various arguments, Printing all of them causes the
> complex output, that was my thought before I send the patch.
> Now...yes, it makes sense that including the arguments in output, I can add
> them if the patch's idea is acceptable.
You could do it like -device / device_add: argument help lists types,
and argument T,help shows additional help for type T.