Bug 699847
Summary: | [RHEL 6.1] "man virsh" says that "URI" is optional in connect option. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | asilva <asilva> |
Component: | libvirt | Assignee: | Eric Blake <eblake> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | dallan, dyuan, eblake, jmunilla, myamazak, mzhan, pschiffe, rwu, veillard, yupzhang |
Target Milestone: | rc | Keywords: | Documentation, ManPageChange |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.4-8.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 11:06:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 658636 |
Description
asilva
2011-04-26 18:44:27 UTC
The current convention in the virsh man page is that "optional" implies that all _subsequent_ arguments are option. Thus: # man virsh <snip> connect URI optional --readonly is to be interpreted as "connect" (mandatory), "URI" (mandatory), "--readonly" (optional) But I personally hate that convention. I would much rather see us prune all mention of the word "optional" out of synopses, and instead use [] metasyntax: connect URI [--readonly] more in line with how 'virsh help connect' displays things. It's a large, time-consuming, but mostly mechanical patch to do so. Any volunteers? (In reply to comment #3) > But I personally hate that convention. I would much rather see us prune all > mention of the word "optional" out of synopses, and instead use [] metasyntax: /me is not volunteering, but I agree. This was fixed upstream with the following, and should already be part of libvirt-0.9.4-6.el6: commit 08d3b0a2f8be57205973af320ece8ce36fbb5389 Author: Eric Blake <eblake> Date: Thu Jul 14 11:36:21 2011 -0600 docs: improve virsh man page synopses "optional" is not a very good meta-syntactic construct in our man page. I scrubbed this, and additionally improved some documentation on mutually exclusive options. For example, [[--live] [--config] | [--current]] implies a set of optional flags, where within the set you can have either --current or a choice of 0, 1, or both --live and --config. * tools/virsh.pod: Use "[name]" rather than "optional name" for optional arguments. Hi, Eric 2 tiny issues in man page and virsh help, will fix it in RHEL6.2 or not ? 1. The following arguments without [], maybe it's added after your patch.. send-key domain-id optional --codeset codeset optional --holdtime holdtime 2. The documentation of mutually exclusive options are different from "man virsh" and "virsh help" # man virsh --snip-- setmem domain-id kilobytes [[--config] [--live] | [--current]] # virsh help setmem --snip-- SYNOPSIS setmem <domain> <kilobytes> [--config] [--live] [--current] (In reply to comment #10) > Hi, Eric > > 2 tiny issues in man page and virsh help, will fix it in RHEL6.2 or not ? > > 1. The following arguments without [], maybe it's added after your patch.. > send-key domain-id optional --codeset codeset optional --holdtime holdtime Aargh. send-key was written before my patch to the man page, but merged after, so it snuck in with the old style. We can still get that fixed for RHEL 6.2, so I'll move this back to assigned. > > 2. The documentation of mutually exclusive options are different from "man > virsh" and "virsh help" > > # man virsh > --snip-- > setmem domain-id kilobytes [[--config] [--live] | [--current]] > > # virsh help setmem > --snip-- > SYNOPSIS > setmem <domain> <kilobytes> [--config] [--live] [--current] Intentional. The man page is hand-written, and can afford to show extra meta-syntax for things such as mutually-exclusive options. The 'virsh help' output is machine generated, and we do not have an infrastructure in place for any additional designations for mutual exclusion. The 'virsh help' output is meant to be a quick refresher, while the 'man virsh' page should be authoritative, so there is nothing worth fixing here. Besides, fixing the man page is still reasonable, but what you are asking for would be a rather invasive change to virsh.c which is too late for 6.2. Awaiting upstream ACK: https://www.redhat.com/archives/libvir-list/2011-August/msg01504.html (In reply to comment #10) > Hi, Eric > > 2 tiny issues in man page and virsh help, will fix it in RHEL6.2 or not ? > > 1. The following arguments without [], maybe it's added after your patch.. > send-key domain-id optional --codeset codeset optional --holdtime holdtime > Verified this issue PASS with libvirt-0.9.4-9.el6. # man virsh --snip-- send-key domain-id [--codeset codeset] [--holdtime holdtime] keycode... > 2. The documentation of mutually exclusive options are different from "man > virsh" and "virsh help" > > # man virsh > --snip-- > setmem domain-id kilobytes [[--config] [--live] | [--current]] > > # virsh help setmem > --snip-- > SYNOPSIS > setmem <domain> <kilobytes> [--config] [--live] [--current] Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1513.html |