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

Re: [libvirt] [PATCH] tests: new test: virsh-synopsis



On Fri, Nov 21, 2008 at 11:13:03AM +0100, Jim Meyering wrote:
> I wanted help SYNOPSIS output that was regular enough to parse.


>  static const vshCmdInfo info_network_create[] = {
> -    {"syntax", "create a network from an XML <file>"},
> +    {"syntax", "net-create <file>"},

I'm kind of wondering why we manually write the "syntax" string at all.
We know the name of the command, and we know the names of all the 
args, so we can auto-generate this entire string.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


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