From ad81cf7f78a387ec62d47520a677b8fe6ac9d9be Mon Sep 17 00:00:00 2001 From: Josh Wood Date: Mon, 9 Nov 2015 16:31:30 -0800 Subject: [PATCH] Vmware-guestinfo: Double hyphen long options. In line with https://github.com/coreos/docs/issues/650, revert a little bit of https://github.com/coreos/coreos-cloudinit/pull/404 to document `--longoption` with two hyphens in document and Usage. --- Documentation/vmware-guestinfo.md | 2 +- coreos-cloudinit.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/vmware-guestinfo.md b/Documentation/vmware-guestinfo.md index 22e897d..c008911 100644 --- a/Documentation/vmware-guestinfo.md +++ b/Documentation/vmware-guestinfo.md @@ -3,7 +3,7 @@ ## Cloud-Config VMWare Guestinfo Variables coreos-cloudinit accepts configuration from the VMware RPC API's *guestinfo* -facility. This datasource can be enabled with the `-from-vmware-guestinfo` +facility. This datasource can be enabled with the `--from-vmware-guestinfo` flag to coreos-cloudinit. The following guestinfo variables are recognized and processed by cloudinit diff --git a/coreos-cloudinit.go b/coreos-cloudinit.go index ed5c5bd..909e8b8 100644 --- a/coreos-cloudinit.go +++ b/coreos-cloudinit.go @@ -169,7 +169,7 @@ func main() { dss := getDatasources() if len(dss) == 0 { - fmt.Println("Provide at least one of -from-file, -from-configdrive, -from-ec2-metadata, -from-cloudsigma-metadata, -from-packet-metadata, -from-digitalocean-metadata, -from-vmware-guestinfo, -from-waagent, -from-url or -from-proc-cmdline") + fmt.Println("Provide at least one of --from-file, --from-configdrive, --from-ec2-metadata, --from-cloudsigma-metadata, --from-packet-metadata, --from-digitalocean-metadata, --from-vmware-guestinfo, --from-waagent, --from-url or --from-proc-cmdline") os.Exit(2) }